Getting rid of warning in Xcode
Getting rid of warning in Xcode
- Subject: Getting rid of warning in Xcode
- From: Mark Munz <email@hidden>
- Date: Fri, 12 Dec 2003 20:50:26 -0700
I'm writing some code that uses a new 10.3 API only if it's found (ie.
respondsToSelector: and only sends the message if it does respond).
The problem I have is that Xcode always warns me on each one of these.
Is there some technique to get rid of the warning for the cases that I
know aren't correct?
NSButton* btn;
{btn gets setup}
if ([btn respondsToSelector:@selector(setHidden:)])
{
[btn setHidden:YES]; <-- ALWAYS get a warning
}
Any help with this would be great.
Thanks.
Mark Munz
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.