• 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
imageRepWithData memory management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: change rect of tooltip in table view
  • Next by Date: SplashScreen
  • Previous by thread: change rect of tooltip in table view
  • Next by thread: Re: imageRepWithData memory management
  • Index(es):
    • Date
    • Thread