• 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 from bitmap - then delete bitmap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage from bitmap - then delete bitmap


  • Subject: Re: NSImage from bitmap - then delete bitmap
  • From: Graham Cox <email@hidden>
  • Date: Wed, 27 Jul 2016 12:22:31 +1000

> On 27 Jul 2016, at 12:18 PM, Graham Cox <email@hidden> wrote:
>
> The atomic setter method probably looks something like this:


A further thought. If the getter method is also protected, like:

- (NSImageRep*)	imageRep
{
	@synchronized( self )
	{
		return [[_imageRep retain] autorelease];
	}
}


Then you’ll also be safe.

I have no idea if this is what synthesized atomic getters look like though.

—Graham



_______________________________________________

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


References: 
 >Re: NSImage from bitmap - then delete bitmap (From: Trygve Inda <email@hidden>)
 >Re: NSImage from bitmap - then delete bitmap (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSImage from bitmap - then delete bitmap
  • Next by Date: Re: NSImage from bitmap - then delete bitmap
  • Previous by thread: Re: NSImage from bitmap - then delete bitmap
  • Next by thread: Re: NSImage from bitmap - then delete bitmap
  • Index(es):
    • Date
    • Thread