• 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: filling NSImage with binary data from NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filling NSImage with binary data from NSData


  • Subject: Re: filling NSImage with binary data from NSData
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 8 May 2006 01:25:23 +0200

Am 07.05.2006 um 23:56 schrieb Greg Herlihy:
One major problem is that the plane parameter has to be a pointer an array of pointers to the image data - and not a pointer to the image data itself. Each pointer in this array points to a different plane of the image. But being a grayscale image, there should be only one pointer present in this array.

He's doing that correctly. It's no difference whether you say:

char*	foo[1];
foo[0] = myPointer;
[[NSFoo alloc] init: foo];

or

char*	bar;
bar = myPointer;
[[NSFoo alloc] init: &bar];

you get a pointer to a pointer each time. He's doing the latter.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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: 
 >filling NSImage with binary data from NSData (From: "marc joanisse" <email@hidden>)
 >Re: filling NSImage with binary data from NSData (From: "Greg Herlihy" <email@hidden>)

  • Prev by Date: Implementing control with multiple cells
  • Next by Date: Re: Implementing control with multiple cells
  • Previous by thread: Re: filling NSImage with binary data from NSData
  • Next by thread: Re: filling NSImage with binary data from NSData
  • Index(es):
    • Date
    • Thread