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: Chuck Pisula <email@hidden>
- Date: Tue, 8 May 2001 08:47:55 -0700
The things you return in the array in question
(-toolbarDefaultItemIdentifiers: or something like that), needs to be a
string. Try something like this:
NSLog(@"responds to isEqualToString ==> %@", ([[toolItems
objectForKey:@"Sample"] respondsToSelector:@selector(isEqualToString:)] ? @
"YES" : @"NO ");
If that prints "NO" your thing in the dictionary is not what it should be.
-chuck
On Tuesday, May 8, 2001, at 08:30 AM, Matt Ridley wrote:
>
> 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?