Re: Toolbar woes...
Re: Toolbar woes...
- Subject: Re: Toolbar woes...
- From: Bryan Blackburn <email@hidden>
- Date: Tue, 21 Jan 2003 22:35:46 -0700
- Mail-followup-to: Cocoa Development <email@hidden>
You're autoreleasing toolbar twice in setupToolbar, remove one and
see what happens.
Bryan
On Jan 21, 2003 21:52, Andy Satori stated:
>
After experimenting lightly with toolbars, I don't understand why this
>
is suddenly problematic, and I'm hoping someone can shed some light.
>
>
Using the examples from Mike Beam's articles on macdevcenter I have
>
implmented a toolbar category on his address book, no problems. Then
>
when moving this same basic code into an application that was working,
>
I get a SIGSEGV 11 when I run the application. Commenting out the call
>
to [self setupToolbar]; eliminates both the toolbar and the SEGV.
>
Below you will find the relevant ( I think ) code.
>
>
Andy
>
>
[snip]
>
>
- (void)setupToolbar
>
{
>
NSToolbar *toolbar = [[NSToolbar alloc]
>
initWithIdentifier:@"toolbarExplorer"];
>
[toolbar autorelease];
>
[toolbar setDelegate:self];
>
[toolbar setAllowsUserCustomization:YES];
>
[toolbar setAutosavesConfiguration:YES];
>
[windowExplorer setToolbar:[toolbar autorelease]];
>
}
>
[snip]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.