On 12 Nov 2012, at 14:18, Joerg Simon <j_si...@mac.com> wrote: > You can use dispatch_sync. The blog post of oliver dobnigg (cocoanetics) > summs that up quite nicely: > http://www.cocoanetics.com/2012/02/threadsafe-lazy-property-initialization/
Or you can use dispatch_once, but make sure the once token is an ivar, unlike I did. Tom Davie _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com