• 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
@selector signature with two colons instead of actual message name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

@selector signature with two colons instead of actual message name


  • Subject: @selector signature with two colons instead of actual message name
  • From: email@hidden
  • Date: Tue, 03 May 2011 21:49:31 -0400

I create a sheet using the following:

 [alert beginSheetModalForWindow:[self windowForSheet] modalDelegate:self didEndSelector:@selector(noEmailAlertDidEnd::contextInfo:) contextInfo:NULL];

What looks strange to me is the @selector(noEmailAlertDidEnd::contextInfo:) that got created by Xcode's code completion. The signature of the method is:

- (void)noEmailAlertDidEnd:(NSAlert*) returnCode:(NSInteger)retCode contextInfo:(void*)ctxInfo {

So why does code completion put two colons in a row instead of returnCode: and if I insert returnCode: in the @selector I get an unrecognized selector exception when I run it. It does work fine with the two colons in a row. What am I missing as I don't understand why it works with the two colons and why it does not work with the returnCode:?

This is on 10.6.7 using Xcode 4.0.2

Thanks,
Dave

_______________________________________________

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

  • Follow-Ups:
    • Re: @selector signature with two colons instead of actual message name
      • From: "Stephen J. Butler" <email@hidden>
  • Prev by Date: Re: Quick Looking big files crash
  • Next by Date: Re: @selector signature with two colons instead of actual message name
  • Previous by thread: Re: Quick Looking big files crash
  • Next by thread: Re: @selector signature with two colons instead of actual message name
  • Index(es):
    • Date
    • Thread