Re: Getting rid of Obj-C "may not respond to" warning
Re: Getting rid of Obj-C "may not respond to" warning
- Subject: Re: Getting rid of Obj-C "may not respond to" warning
- From: Thomas Engelmeier <email@hidden>
- Date: Mon, 3 Sep 2007 22:56:47 +0200
Am 03.09.2007 um 22:40 schrieb David Dunham:
My application is using an undocumented NSApplication method. I
realize the possible dangers in this, and would like to get rid of
the warning that GCC gives me. Is there a way to do so (without
globally disabling the warning)?
One of the common ways is to add the prototype in a category:
@interface NSApplication(PrivateInterface)
- (void) privateMethod;
@end;
HTH,
Tom_E
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden