Nobody, no hint? - - - - -
On 24.02.2011 16:44, Ulf Dunkel wrote:
Mac OS 10.6.6 and Xcode 3.2.5: I am playing with NSNumberFormatter stuff for various custom number edit fields, which will e.g. be used to auto-format dpi values, degree values, document measurement values with various format strings, etc. I currently receive an EXC_BAD_ACCESS, with the following relevant code lines in the relevant method: - (id)init { [...] [self setFormatterBehavior:NSNumberFormatterBehavior10_4]; return self; } - (void)setNewFormatString { NSLocale *autoLocale = [NSLocale autoupdatingCurrentLocale]; NSString *localeIdentifier = [autoLocale localeIdentifier]; NSLog(@"%@", localeIdentifier); // outputs e.g. "fr_CA" [self setLocale:autoLocale]; //<-- EXC_BAD_ACCESS // more formatting stuff [...] } I cannot find what I am doing wrong. Can you help, please? ---Ulf Dunkel
_______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com