Re: How to disable an NSWindow
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