On 23 Jan 2009, at 18:30, Jonathan Fewtrell wrote:

My app, developed on 10.5 but targeted at 10.3.9 and above, contains the following code:

NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setFormat:@"#0;#0;#0"];

It compiles without warnings.

When running on 10.3.9 it crashes with EXC_BAD_ACCESS in - [NSNumberFormatter setFormat:]. It works fine on 10.4 and 10.5.

For such a simple bit of code, I struggle to see what could be wrong. A previous version, developed on 10.4, did not show this problem, so I'm wondering if it's a build setting problem. If it is, I can't see which one.

I can see from the archives that NSNumberFormatter has various issues, but they do not seem to me to be relevant here.


I have now established that the problem only occurs if the above code is in a framework bundle rather than an app bundle. And it only occurs if that framework was built on 10.5 (specifically XCode 3.1.2 on OS X 10.5.6). If it is built from the exact same source files on 10.4 (XCode 2.4.1; OS X 10.4.11) the problem does not occur.
_______________________________________________

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

Reply via email to