• 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: And another thing I don't quite understand... ;-)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: And another thing I don't quite understand... ;-)


  • Subject: Re: And another thing I don't quite understand... ;-)
  • From: Matt Ridley <email@hidden>
  • Date: Tue, 8 May 2001 16:56:23 +0100

On Tuesday, May 8, 2001, at 04:37 pm, John Hvrnkvist wrote:

But returning [toolItems allkeys] is something else --- when you do that you return the keys --- here you're returning the value for the key. It looks like the value for the @"Sample" key is an NSToolbarItem rather than an identifier (which is just a string, IIRC).

So, try doing this instead:
return [NSArray arrayWithObjects: NSToolbarCustomizeToolbarItemIdentifier,@"Sample", nil];

You can be sure that I'm beating myself over the head with a large Apple Developer Connection Orientation Kit box. :-)

You're correct, of course. Having already defined the set of valid items for the toolbar, I can indeed just pass in @"Sample" and it shows the correct one. That was stupid of me.

It works properly now. Thanks very much indeed for your help, and for your patience (and the same to the others who responded to both my emails today). I'm certainly learning. :-)


Very best wishes,
-Matt

--
Matt Ridley
<http://www.mattridley.com/>


  • Follow-Ups:
    • Re: And another thing I don't quite understand... ;-)
      • From: Matthew Formica <email@hidden>
References: 
 >Re: And another thing I don't quite understand... ;-) (From: John Hörnkvist <email@hidden>)

  • Prev by Date: Re: And another thing I don't quite understand... ;-)
  • Next by Date: Re: continu to search info (Socket)
  • Previous by thread: Re: And another thing I don't quite understand... ;-)
  • Next by thread: Re: And another thing I don't quite understand... ;-)
  • Index(es):
    • Date
    • Thread