Re: How to block for NSSavePanel response
Re: How to block for NSSavePanel response
- Subject: Re: How to block for NSSavePanel response
- From: Bruce Truax <email@hidden>
- Date: Tue, 13 Jul 2004 11:34:54 -0400
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:
Thanks.
--
____________________________________________________________
Bruce E. Truax email: email@hidden
Optical Engineering Consultant
Diffraction Limited Design LLC
388 Wedgewood Road voice: 860-276-0450
Southington, CT 06489 fax: 860-620-9026
http://www.dld-llc.com
_____________________________________________________________
_______________________________________________
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.