• 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
Class responds to selector?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Class responds to selector?


  • Subject: Class responds to selector?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Mon, 25 Jul 2005 12:14:42 +0100


OK, so I can use respondsToSelector: to ask if an object responds to a selector.


But what about telling if a class responds to a selector?

This code here:

if ( ! [NSColor instancesRespondToSelector: @selector (controlAlternatingRowBackgroundColors) ] ) {
return [NSColor whiteColor];
}



returns false when actually NSColor the class does actually respond to controlAlternatingRowBackgroundColors.


--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Class responds to selector?
      • From: Sherm Pendley <email@hidden>
    • Re: Class responds to selector?
      • From: j o a r <email@hidden>
  • Prev by Date: App icon in Keychain panels?
  • Next by Date: Re: Class responds to selector?
  • Previous by thread: Re: App icon in Keychain panels?
  • Next by thread: Re: Class responds to selector?
  • Index(es):
    • Date
    • Thread