Re: Nested sheets
Re: Nested sheets
- Subject: Re: Nested sheets
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 31 Mar 2005 18:24:43 -0500
on 2005-03-31 6:15 PM, Edward Hillenbrand at email@hidden
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 - email@hidden
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden