On 29 Apr 2014, at 9:29 PM, Charles Srstka <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to