Johannes Brakensiek · @lazarus
105 followers · 847 posts · Server fosstodon.org

Congrats to @js for releasing the first stable version of @objfw!

I‘ve got to work this evening, but I‘m opening a virtual bottle of sparkling wine! 🍾🎉😃

#objfw #objc

Last updated 1 year ago

Johannes Brakensiek · @lazarus
99 followers · 788 posts · Server fosstodon.org

@sonny That‘s great to hear! Looking forward to study how it‘s done and to add support for @objfw and at some point.

#objc

Last updated 1 year ago

Dave Rahardja · @drahardja
1607 followers · 6426 posts · Server sfba.social

Blog post: How to expose (some) symbols from your library directly to via headers.

This was a topic of conversation I had here some time ago, but I never put it together as a blog post. I hope you can use this in your own projects!

humancode.us/2023/08/09/objc-h

#swift #objc #ios #macos #programming

Last updated 1 year ago

Johannes Brakensiek · @lazarus
94 followers · 706 posts · Server fosstodon.org

@el_gaucho If you like to create/use the backend in C and (use @objfw), then you will be able to use for the frontend. Either using on Apple devices or using on other Posix devices as soon as I manage to complete it. As long you may want to look at @vala_lang which provides C bindings for many libraries and more if you create VAPIs yourself.

#objc #appkit #uikit #objgtk #floss

Last updated 1 year ago

Juan Alvarez · @nebiros
102 followers · 714 posts · Server fosstodon.org
Johannes Brakensiek · @lazarus
94 followers · 672 posts · Server fosstodon.org

Really need to get back to @elementary at some point. It‘s beauty is a huge motivation to work on @GTK and , also because just feels like it belongs there.

#objc #objgtk

Last updated 1 year ago

Dave Rahardja · @drahardja
1065 followers · 4886 posts · Server sfba.social

I’m getting pretty fluent at writing these days, but I still miss writing in . I banged out a command-line tool in ObjC and it was glorious. I love the laid-back nature of the language, its verbosity that makes the code immediately readable, and its not-super-eagerness to get everything fixed up at compile time.

Would I recommend ObjC over Swift for new projects? No. I think most people will create better programs in Swift than ObjC. But I do miss those good old days. The Delegate pattern with optional methods is *still* exceedingly powerful and IMO yet to be surpassed with callbacks, builders, or what-have-you. The ability to cheat and directly examine the runtime without too much type safety in LLDB is extremely refreshing too.

Anyway, back to Swift.

#swift #objc

Last updated 1 year ago

¡a!n · @iain
131 followers · 1414 posts · Server kolektiva.social

Anyone looking for a remote (UK based) or UI application developer? Experience of large, complex projects, , , , etc?

,

#mac #iOS #objc #swift #AppKit #swiftui #jobs #jobfairy

Last updated 1 year ago

Juan Alvarez · @nebiros
90 followers · 505 posts · Server fosstodon.org

honestly, fucking is amazing!, it interops with , and ofc, C, now they are paving the road to interop with , neat!, dunno why wasn’t took the backend world yet, sad, :/

forums.swift.org/t/accepted-a-

#swiftlang #objc #cplusplus

Last updated 1 year ago

Kuba Suder · @mackuba
168 followers · 392 posts · Server martianbase.net

This got a little bit better over the years, didn't it? 😉

#coredata #swift #objc

Last updated 2 years ago

Digital Mark λ 📚 🕹 💾 🥃 · @mdhughes
1194 followers · 27681 posts · Server appdot.net
Johannes Brakensiek · @lazarus
79 followers · 489 posts · Server fosstodon.org

@ademalsasa @probono @gugurumbe Well, is an idea. I doubt there is any chance to create a working OS with such little manpower. Non the less and are completely based. The main frameworks are not a feature that could be merged in on a later point. Many of the features of and were possible only due to the dynamic nature of (and nowadays).

#ravynos #macos #gnustep #objc #macosx #ios #swift

Last updated 2 years ago

Johannes Brakensiek · @lazarus
78 followers · 466 posts · Server fosstodon.org

@dasdom Way too few votes for Objective-C! Team

#objc

Last updated 2 years ago

Johannes Brakensiek · @lazarus
77 followers · 453 posts · Server fosstodon.org

@ademalsasa @gugurumbe I think there was a GNUstep release for evaluating it, but @probono dropped it in favour of Qt tech. So helloSystem is not about *step or now.

If you want to get closer to that look at (darlinghq.org) or (airyx.org) or (trunkmaster.github.io).

#objc #darling #ravynos #nextspace

Last updated 2 years ago

Vivien · @gugurumbe
34 followers · 529 posts · Server mastouille.fr

What do you think of gnustep?

#gnustep #gui #objc #objectivec

Last updated 2 years ago

Dave Rahardja · @drahardja
693 followers · 2569 posts · Server sfba.social

Time for an question: Can I use lightweight generics to parameterize a *class* rather than a *class pointer*?

i.e. can I do…

@interface Foo<C>
- (instancetype)initWithClass:(C)aClass;
- (C *)instanceOfClass;
@end

#objc #objectivec

Last updated 2 years ago

Dave Rahardja · @drahardja
661 followers · 2367 posts · Server sfba.social

As you know I spent a lot of time the past weeks figuring out how to expose classes and other types to , allowing more-or-less type-checked, free bridging between the two languages.

I have now summarized what I’ve learned in a sample project you can check out here: github.com/dave-humancode/Swif

tl;dr: a small set of macros and coding conventions allow *some* Swift symbols to be visible from ObjC.

#swift #objc

Last updated 2 years ago

Dave Rahardja · @drahardja
656 followers · 2355 posts · Server sfba.social

Is there an officially-supported way to call funcs from or yet, or no?

#swift #c #objc

Last updated 2 years ago

Dave Rahardja · @drahardja
646 followers · 2317 posts · Server sfba.social

I wish exporting an -compatible classes implemented in were easier and more feature-complete. As one of my coworkers said, this is the opposite of what Apple does most of the time (i.e. they export Swift-compatible classes implemented in ObjC).

#objc #swift

Last updated 2 years ago

Dave Rahardja · @drahardja
643 followers · 2292 posts · Server sfba.social

Does exporting compatibility headers simply not work with nested classes?

For instance, if I have the following classes:

@objc(MyOut) public class Out {
@objc(MyIn) public class In {}
}

The compatibility header will declare a MyOut interface mapping to Out (right), and a MyIn interface mapping to In (wrong: should be Out.In).

This makes it impossible to declare an objc method that takes a MyIn * to be called from Swift with an Out.In object.

developer.apple.com/documentat

#objc #swift

Last updated 2 years ago