Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
- Subject: Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?
- From: Mike Abdullah <email@hidden>
- Date: Tue, 06 Sep 2011 12:30:27 +0100
On 6 Sep 2011, at 12:10, Vyacheslav Karamov wrote:
> Cast window to the type id:
>
> if ([window respondsToSelector:@selector(setRestorationClass:)])
> {
> [(id)window setRestorationClass:someClass];
> }
That will only quieten the warning if -setRestorationClass: has been declared for some other class, which in the 10.6 SDK is not the case.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden