Re: And another thing I don't quite understand... ;-)
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/>