imageRepWithData memory management
imageRepWithData memory management
- Subject: imageRepWithData memory management
- From: Raul Fiedler <email@hidden>
- Date: Sun, 2 Dec 2007 15:47:10 +0100
Hi
I find it difficult to find documentation at Apple dev. what happens
in this case:
NSBitmapImageRep *image = [NSBitmapImageRep imageRepWithData:
[myNSImage TIFFRepresentation]];
According to documentation:
Creates and returns an NSBitmapImageRep object initialized with the
first image in the supplied data.
But my question is what about release? Or is the object from
imageRepWithData autorelease?
Further what is happening to the NSData object that is createdby
TIFFRepresentation, is it autoreleas?
Or is the NSData object released when the NSBitmapImageRep object is
release?
Thank you
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden