• 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: How to disable an NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable an NSWindow


  • Subject: Re: How to disable an NSWindow
  • From: Ricky Sharp <email@hidden>
  • Date: Sat, 20 Jan 2007 08:40:13 -0600


On Jan 20, 2007, at 6:58 AM, aashish tiwari wrote:

In my application my main window launches another window on a button click, i want when second window is launched, my main window remain visible but it should get disabled, and it only gets enabled when user is done with this changes on the second window.

Best implementation would be to make the second window a sheet of the first (i.e. 'window/document-modal'):


<file:///Developer/ADC Reference Library/documentation/Cocoa/ Conceptual/Sheets/index.html>

or, if you cannot do that, make the second window run as 'application- modal':

<file:///Developer/ADC Reference Library/documentation/Cocoa/ Conceptual/WinPanel/index.html>

(follow the link to 'How Modal Windows Work')


___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >How to disable an NSWindow (From: aashish tiwari <email@hidden>)

  • Prev by Date: How to disable an NSWindow
  • Next by Date: NSTask exception on Intel
  • Previous by thread: How to disable an NSWindow
  • Next by thread: NSTask exception on Intel
  • Index(es):
    • Date
    • Thread