Re: Creating selector for nonexistent method
Re: Creating selector for nonexistent method
- Subject: Re: Creating selector for nonexistent method
- From: Fritz Anderson <email@hidden>
- Date: Tue, 06 May 2014 12:32:18 -0500
On 29 Apr 2014, at 9:29 PM, Charles Srstka <email@hidden> wrote:
> int main (__unused int argc, __unused const char **argv) {
> @autoreleasepool {
> NSArray *array = [NSArray new];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wselector"
> array = [array sortedArrayUsingSelector:@selector(compare:)];
#pragma clang diagnostic pop
> }
>
> return 0;
> }
As with any such solution, you become responsible for minimizing its scope so it doesn’t extend to unintended code.
Maybe I’m missing something.
— F
_______________________________________________
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