Re:Shell Scripting with Objective-C
by demallien on Sunday June 01, 2014 @02:20AM
(#7828335)
Are you sure about that? I'm pretty sure that it's NSImage that holds the actual pixmap, which definitely makes it part of the GUI stack.
[ Parent
| on HN ]
NSImage is part of AppKit and while it is definitely key to a lot of UI code that's because of well thought out delegation rather than it being part of UIKit or CocoaTouch. It would be pretty annoying to have two different and possibly incompatible NSImage classes to deal with if it lived in each platform's UI framework.
Unfortunately, UIKit doesn't use the well-thought-out NSImage class, opting instead to reimplement it by way of UIImage.
In this case, the GP is correct: NSImage is part of the UI toolkit (AppKit); it is not a core API exposed by, say, Foundation.