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 (Cocoa-dev@lists.apple.com)

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

This email sent to arch...@mail-archive.com

Reply via email to