5 ms·
It looks like they took an approach similar to GNUStep, with its inverted layers compared to Apple's implementation. CF on top of Foundation on top of UIKit. L
by icodestuff 11y ago
It looks like they took an approach similar to GNUStep, with its inverted layers compared to Apple's implementation. CF on top of Foundation on top of UIKit.
Looking a little deeper, it's missing some things... KVC/KVO are entirely absent. libdispatch looks to be pretty broken. NSNull is wrong in about 3 ways. There are several classes which are just stubs. Most of the NSLock subclasses are missing.
It's a good start, but I don't see it becoming the ObjC standard library by any stretch of the imagination.
- lukeh 11y agoAck. I recall Apportable did something similar in their first cut, then redid it with the correct architecture. (I wouldn't say Foundation is on top of UIKit in Microsoft's implementation though?) I am surprised they didn't use any of Apple's open source code, such as libdispatch or CoreFoundation.
- lukeh 11y agoYou're right, -[NSProcessInfo physicalMemory] for example is layered on +[UIDevice _deviceTotalMemory].
- icodestuff 11y agoApportable basically used a heavily modified fork of GNUStep originally, but yes, then they did switch to a correctly layered architecture.