Re: cocoa-dev digest, Vol 1 #979 - 14 msgs
Re: cocoa-dev digest, Vol 1 #979 - 14 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #979 - 14 msgs
- From: Simon Stapleton <email@hidden>
- Date: Sun, 16 Dec 2001 20:57:29 +0000
Subject: Re: NSBeginAlertSheet()
Cc: email@hidden
To: Riccardo Santato <email@hidden>
From: Thomas Lachand-Robert <email@hidden>
Le dimanche 16 dicembre 2001, ` 02:25 , Riccardo Santato a icrit :
Hi everybody,
I was wondering wether some of you has got a little bit of docs for
NSBeginAlertSheet macro, which is undocumented in my Developer Tools
suite (I don't know if it's the same with the latest release).
Was there something similar even in NeXTStep ?
Can you help me ?
Many thanks.
It is a function, and it is documented in
file:///Developer/Documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/
Functions/AppKitFunctions.html
In the latest (December) release of the devtools, however, the
documentation is just plain wrong.
The comments in the code indicate that the delegate selectors are indeed
sheetDidEnd:... and sheetDidDismiss:..., although the function prototype
indicates sheetwillEnd:... and sheetDidEnd...
The prototype of these selectors, far from being sheetDidEnd(NSWindow
sheet, int returnCode, void *contextInfo) as indicated in the docs,
should be something like:
- (void) sheetDidEnd:(NSWindow *)sheet returnCode:(int) returnCode
userInfo:(void *) userInfo;
And finally, the return code should be of the form NSAlert...Return,
instead of ...Return (i.e. NSAlertDefaultReturn, not DefaultReturn).
Yes, I was looking at this this afternoon.
Yes, I raised a bug.
Simon
--
PGP Key Id : 0x50D0698D
--
Your mouse has moved. You must restart Windows NT for this change to be
recognised.