| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I setup a window controller subclass and used the code below to setup a very basic toolbar but when I run the application, the window shows, I see the customize toolbar item in the window and about half a second later the app crashes. I'm not sure what's causing it to crash, but if I don't call setupToolbar it doesn't crash. I've stepped through with the debugger and it doesn't crash in this code but somewhere in NSWindowController showWindow.
- (void)setupToolbar
{
NSToolbar *toolbar = [[NSToolbar alloc] initWithIdentifier:@"mainToolbar"];
[toolbar autorelease];
[toolbar setDelegate:self];
[toolbar setAllowsUserCustomization:YES];
[toolbar setAutosavesConfiguration:YES];
[[self window] setToolbar:[toolbar autorelease]];
}
| References: | |
| >Crash With Toolbar Items (From: Seth Willits <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.