Re: NSImage is a pain
Re: NSImage is a pain
- Subject: Re: NSImage is a pain
- From: Marco Scheurer <email@hidden>
- Date: Thu, 23 Jun 2005 22:38:08 +0200
On Jun 23, 2005, at 9:58 PM, Theodore H. Smith wrote:
One of my other points, is that the Cocoa framework does not appear as
well designed as I would have made it. For example: [NSImageRep
colorAtX:(int)x y:(int)y] Do you see any design flaws in such a
method?
No. What's wrong with it?
For someone who really appreciates good design, Cocoa's colorAtX:y:
method does not make me feel comfortable.
Maybe because you are looking to it with your pixel-enumeration
glasses? This is probably not a good idea, but this does not mean that
this method is useless or "badly designed", whatever that means in that
case. Cocoa is certainly not perfect, but this can hardly be used
against it.
BTW, NSBitmapRep also exports what is needed to do image processing
(-bitmapData for instance). And vImage in the Accelerate framework is
worth a look too.
Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
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