3 ms·
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
by 21echoes 12y ago
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.
- demallien 12y agoAre 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.
- Moto7451 12y agoNSImage 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.
- DHowett 12y agoUnfortunately, 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.