Re: [beginner] Please help! Insoluble (for me at least) toolbar problem
Re: [beginner] Please help! Insoluble (for me at least) toolbar problem
- Subject: Re: [beginner] Please help! Insoluble (for me at least) toolbar problem
- From: Sherm Pendley <email@hidden>
- Date: Sat, 8 Mar 2003 12:30:59 -0500
On Saturday, March 8, 2003, at 11:50 AM, Erika wrote:
I cannot for the life of me persuade Apple's standard items to show up.
Here's the culprit, I think.
// toolbar item setup code here...
/************************************************************************
*******/
- (NSToolbarItem *) toolbar:(NSToolbar *)toolbar
itemForItemIdentifier:(NSString *)itemIdentifier
willBeInsertedIntoToolbar:(BOOL)flag
{
NSToolbarItem *toolbarItem = [[NSToolbarItem
alloc]initWithItemIdentifier:itemIdentifier];
You're creating the toolbarItem here...
else
{
toolbarItem = nil;
}
But here, if the identifier isn't one of your custom identifiers - which
it won't be, for any of the standard items - you're resetting it to nil.
sherm--
If you listen to a UNIX shell, can you hear the C?
_______________________________________________
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.