Re: Create an NSCharacterSet constant
Re: Create an NSCharacterSet constant
- Subject: Re: Create an NSCharacterSet constant
- From: Kyle Sluder <email@hidden>
- Date: Mon, 2 Nov 2009 10:42:45 -0800
On Mon, Nov 2, 2009 at 8:20 AM, Michael Ash <email@hidden> wrote:
> Watch out! The 'once' variable must be declared static as well.
> Without it, if you're unlucky to get a zero-filled 'once' every time
> through, this call will appear to work but leak a new Foo every time
> you call it.
Oops. Caveat composewindowtor, I guess. :) Thanks for catching it.
--Kyle Sluder
_______________________________________________
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