site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com User-agent: Microsoft-Entourage/11.1.0.040913 on 2005-03-31 6:15 PM, Edward Hillenbrand at cocoa-dev@verticaleye.net wrote:
The optimal solution would be to disable the open sheets default button. I thought this would be easy because I naively assumed the open/save panel had accessors for the buttons. It doesn't, but its instance variable are not declared private nor does it have a comment stating the instance variables are private like I have seen elsewhere. Does that mean we can use them?
NSOpenPanel is a subclass of NSSavePanel, which exposes both of the buttons' action methods: -ok: and -cancel:. I subclassed NSOpenPanel and overrode the -ok: action method to present my nested sheet. I assume you could also disable the buttons this way. -- Bill Cheeseman - wjcheeseman@adelphia.net Quechee Software, Quechee, Vermont, USA http://www.quecheesoftware.com PreFab Software - http://www.prefab.com/scripting.html The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com
participants (1)
-
Bill Cheeseman