• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage is a pain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: NSImage is a pain (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: String conversion help.
  • Next by Date: Re: NSImage is a pain
  • Previous by thread: Re: NSImage is a pain
  • Next by thread: Re: NSImage is a pain
  • Index(es):
    • Date
    • Thread