Re: NSImage is a pain
Re: NSImage is a pain
- Subject: Re: NSImage is a pain
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 23 Jun 2005 13:19:27 -0700
On Jun 23, 2005, at 12:58 PM, Theodore H. Smith wrote:
Let me make this simple and clear. The docs are lacking on [NSImage
addRepresentation].
To reiterate a point made clearly and simply in a related thread:
The documentation is explicit. The final sentence in the (four
sentence-long first paragraph of the) description of the
addRepresentation (which you conveniently failed to quote) is:
"See NSImageRep and its subclasses for the methods you use to
complete initialization."
It provides a link to NSImageRep. If you follow that, the top of the
page mentions the "Drawing and Images" programming topic. (Also
actually at the top of the API reference for NSImage.) That has an
article, "Setting Up an Image Representation", which states, "... to
work with an NSImage, an image representation must be able to provide
some information about its image. The following sections explain how."
<http://developer.apple.com/documentation/Cocoa/Conceptual/DrawImages/
Concepts/SettingUpImages.html#//apple_ref/doc/uid/20000810>
To the best of my recollection, I've never looked at that page
before. Total elapsed time to find it, less 2 minutes since reading
an email that must have taken several times that long to write...
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden