Class responds to selector?
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