Re: How to block for NSSavePanel response
Re: How to block for NSSavePanel response
- Subject: Re: How to block for NSSavePanel response
- From: Shawn Erickson <email@hidden>
- Date: Tue, 13 Jul 2004 09:23:06 -0700
On Jul 13, 2004, at 8:34 AM, Bruce Truax wrote:
On 7/13/04 11:13 AM, "j o a r" <email@hidden> eloquently wrote:
Most of the time you don't need to block execution. Simply save
whatever state you need to finalize the save operation, and then wait
for the sheet to be dismissed. If you can't do that (but I promise you
that you can), you can use a simple save dialog instead of the save
sheet.
I agree with your recommendation but it is not clear to me how I would
know
when the sheet has been dismissed except for the didEndSelector
delegate. I
supposed I could simply duplicate this code in my calling class and
implement the delegate locally but that seems to go against the
concept of
objective programming.
When you refer to the simple save dialog are are you referring to:
runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo:
Have you read over the following?
<
http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/
index.html>
-Shawn
_______________________________________________
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.