Re: Trouble with a save panel
Re: Trouble with a save panel
- Subject: Re: Trouble with a save panel
- From: David Wood <email@hidden>
- Date: Sat, 15 Mar 2003 19:47:42 -0500
On Saturday, March 15, 2003, at 07:33 PM, Scott Anguish wrote:
On Saturday, March 15, 2003, at 07:09 PM, David Wood wrote:
didEndSelector should have the following signature:
- (void)savePanelDidEnd:(NSSavePanel *)sheet
returnCode:(int)returnCode contextInfo:(void *)contextInfo;
...but the sample code explicitly uses didEnd:returnCode:contextInfo:
as a return method, and the code elsewhere matches it.
in this case they're talking about the signature, that is, the values
it expects as parameters, and the result it returns.
so, this is fine.
That's nice. I tested the thing by changing all three references just
in case (in the header file, in the didEndSelector parameter of
beginSheetForDirectory:blah:blah:blah, and in the definition of the
method itself) and got more or less the same result: a panel that
thinks it's a dialog box and reacts poorly to every keypress and button
click it receives (see the original email for the sample message).
So the problem is not in the unusual selector itself, but somewhere in
the beginSheetForDirectory:etc: call?!
Or is there something else I'm overlooking?
--David
http://skipjack.bluecrab.org/~dwood
"I'm *grateful* for my apathy. SOMETHING has to keep my burning,
festering hatred of life itself in check..."
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.