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:30:33 +0100
On Tuesday, May 8, 2001, at 04:14 pm, John Hvrnkvist wrote:
return [NSArray arrayWithObjects:
NSToolbarCustomizeToolbarItemIdentifier,
[toolItems objectForKey:@"Sample"], nil];
This looks OK --- provided that toolItems really is a
dictionary and it has an item identifier for the key @"Sample".
Thanks once again for your reply, John - I appreciate your help.
toolItems is indeed a dictionary, and it does indeed have an
item identifier for the specified key. In my method to return
all valid items for the toolbar, I simply return [toolItems
allkeys]. That works fine. There's definitely an item with the
identifier @"Sample" since I create it explicitly.
I assume you're getting an exception; what does it look like,
and where does it happen?
Not an exception (sorry I wasn't clear on that); I'm seeing a
message in the Run tab of Project Builder (same place where
NSLog text goes). The message reads:
-[NSToolbarItem isEqualToString:]: selector not recognized
I'm not using isEqualToString anywhere at all, and the message
only appears when I use the "return" statement quoted above. Any
thoughts on that?
Best wishes,
-Matt
--
Matt Ridley
<
http://www.mattridley.com/>