• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [beginner] Please help! Insoluble (for me at least) toolbar problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: [beginner] Please help! Insoluble (for me at least) toolbar problem
      • From: Erika <email@hidden>
References: 
 >[beginner] Please help! Insoluble (for me at least) toolbar problem (From: Erika <email@hidden>)

  • Prev by Date: [beginner] Please help! Insoluble (for me at least) toolbar problem
  • Next by Date: Never ending lack of memory
  • Previous by thread: [beginner] Please help! Insoluble (for me at least) toolbar problem
  • Next by thread: Re: [beginner] Please help! Insoluble (for me at least) toolbar problem
  • Index(es):
    • Date
    • Thread