Re: Proper way to create a singleton without @synchronized ?
Re: Proper way to create a singleton without @synchronized ?
- Subject: Re: Proper way to create a singleton without @synchronized ?
- From: WT <email@hidden>
- Date: Mon, 18 Apr 2011 11:50:59 -0300
On Apr 18, 2011, at 5:05 AM, Joanna Carter wrote:
> Yes; after the first few projects, based on the default Core Data project template, I started to realise that this (separating out the Core Data stack) was an excellent case for a singleton/static class.
>
> Can someone tell me if it is just a matter of adding/modifying class files in the templates folder to make this happen every time?
>
> Joanna
Yes, it's as simple as that, although you might want to move your changed templates to where your changes won't disappear after the next XCode install. For XCode 3.x, that's
~/Library/Application Support/Developer/Shared/XCode/File Templates
~/Library/Application Support/Developer/Shared/XCode/Project Templates
and so on, after which your custom templates will be visible as separate entries in the "new project" and "new file" windows. XCode 4 doesn't seem to support custom templates at the moment.
WT_______________________________________________
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