On Aug 8, 2013, at 15:29, Trygve Inda <[email protected]> wrote:
> [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]
> 
> This is called from C (not Cocoa) so I am looking at the best way to do this
> once and pass the NSCalendar object to where it is needed.

A common thing for NSCalendar and NSDateFormatter objects is to keep them in 
static variables. That way you pay the overhead once, per function/module and 
then it gets re-used.

Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://stacksmith.org


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to