• 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
returnCode from beginSheetModalForWindow is incorrect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

returnCode from beginSheetModalForWindow is incorrect?


  • Subject: returnCode from beginSheetModalForWindow is incorrect?
  • From: "Geert B. Clemmensen" <email@hidden>
  • Date: Wed, 16 Mar 2005 14:05:49 +0100

Hello,

Assuming you have done a beginSheetModalForWindow:... and subsequently clicked one of the buttons, the method given as didEndSelector:, which should have a signature like this:

- (void)alertDidEnd:(NSAlert *)alert returnCode:(int)returnCode contextInfo:(void *)contextInfo;

is invoked. I may have misunderstood Apple's documentation, but it says:

The returnCode identifies which button the user clicked; it is one of the ...ButtonReturn constants described in “Constants” (page 32)

As far as I can tell, the returnCode is either 1, -1 or 0 while the 3 constants referred to are defined to have the values 1000, 1001, 1002.

Is this a well-known bug I have missed references to or am I doing something wrong?

Regards,
Geert B. Clemmensen
www.frontbase.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: returnCode from beginSheetModalForWindow is incorrect?
      • From: Jeremy Dronfield <email@hidden>
  • Prev by Date: Re: What to put in CVS ?
  • Next by Date: Re: What to put in CVS ?
  • Previous by thread: Re: What to put in CVS ?
  • Next by thread: Re: returnCode from beginSheetModalForWindow is incorrect?
  • Index(es):
    • Date
    • Thread