News for hackers. Stuff that matters.
Re:Shell Scripting with Objective-C by 21echoes on Sunday June 01, 2014 @12:18AM (#7828163)
To be a bit pedantic: NSImage isn't part of a GUI toolkit -- don't confuse NSImage with UIImageView! The NSImage is more equivalent to a .png, not to a web <img> tag; it's completely separate from a framework for routing data to the screen.
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.
Re:Shell Scripting with Objective-C by Moto7451 on Sunday June 01, 2014 @02:54AM (#7828395)
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.
Re:Shell Scripting with Objective-C by DHowett on Sunday June 01, 2014 @07:35AM (#7828839)
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.