• 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: Proper way to create a singleton without @synchronized ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Proper way to create a singleton without @synchronized ? (From: WT <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: Kyle Sluder <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: WT <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: Dave DeLong <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: WT <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: Joanna Carter <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: WT <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: Quincey Morris <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: WT <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: Scott Ribe <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: Joanna Carter <email@hidden>)

  • Prev by Date: Re: iOS rotate to interface orientation problem
  • Next by Date: Dynamic UTIs and 10.6 NSPasteboard APIs
  • Previous by thread: Re: Proper way to create a singleton without @synchronized ?
  • Next by thread: Re: Proper way to create a singleton without @synchronized ?
  • Index(es):
    • Date
    • Thread