Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Starting an alert sheet from an NSWindowController that owns a user-editable sheet (From: Jonathan Dann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.