krackers 2 days ago

Yes, it's basically writing a nibless objective-c application but manually translating all invocations to objc_msgsend yourself. You're not going to be able to avoid the objective-c runtime though.

1
zer0zzz 2 days ago

Clang has a pretty cool flag to compile objc to c. I believe it exists for Apple to port their few apps to windows (eg iTunes), but I suspect it could be used to build a pure c environment as well.

krackers 2 days ago

That is very cool, I think it's `-rewrite-objc`. Presumably it still needs to be linked to the objc runtime. It says it lowers to C++ instead of C though, now I wonder what pieces cannot be implemented using pure c.

saagarjha 2 days ago

I don’t think it really works anymore, unfortunately.

astrange 2 days ago

It doesn't support ARC so it's not very useful.