• 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: 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?


References: 
 >Re: And another thing I don't quite understand... ;-) (From: Matt Ridley <email@hidden>)

  • Prev by Date: Re: Something I don't understand...
  • Next by Date: Re: And another thing I don't quite understand... ;-)
  • Previous by thread: Re: And another thing I don't quite understand... ;-)
  • Next by thread: NSAppleEventManager (id)hanlder
  • Index(es):
    • Date
    • Thread