Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
- Subject: Re: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
- From: Keary Suska <email@hidden>
- Date: Thu, 17 Jan 2008 12:02:49 -0700
- Thread-topic: Starting an alert sheet from an NSWindowController that owns a user-editable sheet
on 1/17/08 10:56 AM, email@hidden purportedly said:
> Any ideas how I can do this from within the NSWindowController
> subclass, as this seems like it would be the appropriate place to
> handle all my errors as all the ivars (like the one that holds the
> directory name that the user is trying to create) are within the
> controller class already because they are used by the sheet.
Have your NSWindowController be the delegate of the error alert sheet. In
the delegate method, order out the error and start the original sheet again.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden