Well it works fine on 10.5 without any autorelease warnings, and nothing shows up in 10.3's Console either, so I don't think that's the issue.

Its as if the Cocoa frameworks aren't loading properly when the framework loads..

Kevin


On Sep 17, 2008, at 12:13 PM, Jamie Hardt wrote:

Hello-

I don't thin you can call dictionaryWithObject: without having an autorelease pool set up, and initialize might be getting called before autorelease pool for the main loop is getting setup. Try replacing dictionaryWithObject: with a standard alloc-init sequence.

Or, do the initialization in the app delegate in the applicationDidFinishLaunching: message. That's the best solution.

On Sep 16, 2008, at 8:18 PM, Kevin Wojniak wrote:
@implementation MyApp
+ (void)initialize
{
        NSLog(@"MyApp initialize!");
NSDictionary *dict = [NSDictionary dictionaryWithObject:@"object" forKey:@"key"];
        NSLog(@"dict: %@", dict);
}
@end


_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to