• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Nested sheets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Nested sheets (From: Edward Hillenbrand <email@hidden>)

  • Prev by Date: Re: Nested sheets
  • Next by Date: Re: NSAttributedString saved into NSUserDefaults
  • Previous by thread: Re: Nested sheets
  • Next by thread: Re: Nested sheets
  • Index(es):
    • Date
    • Thread