• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating selector for nonexistent method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to convert a UTF-8 byte offset into an NSString character offset?
  • Next by Date: Re: How to convert a UTF-8 byte offset into an NSString character offset?
  • Previous by thread: Re: NSBrowser tooltips
  • Next by thread: Document being reopened on launch during modal dialog
  • Index(es):
    • Date
    • Thread