@selector signature with two colons instead of actual message name
@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