Re: filling NSImage with binary data from NSData
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