Re: Window close button issue in Leopard
Re: Window close button issue in Leopard
- Subject: Re: Window close button issue in Leopard
- From: Veena Mayya <email@hidden>
- Date: Mon, 7 Jan 2008 12:35:22 +0530
Thanks David.
Actually we don't want to disable the close button, during the launch
of the application. Even if we do so, the "close" button gets enabled
soon after putting the authentication dialog. (in 10.5)
The button remains enabled, even if we try to disable it.(using
[[appMainWindow standardWindowButton:NSWindowCloseButton]
setEnabled:NO];).
Veena
On 05-Jan-08, at 1:00 PM, email@hidden wrote:
Thanks John.
We have already handled the delegate method. But this won't solve
the UI issue . We want to disable the red "close" button itself.
Veena,
That's actually pretty easy to do. You just disable the "Close"
button in the Window Attributes of NIB. While I don't think it's
considered "proper" to send images to the list here's a link to a
screenshot from NIB 3 showing this:
http://img517.imageshack.us/my.php?image=disablecloseke0.png
That said.. I don't know that this is a really good design idea.
Certainly in other GUI environments it's more 'proper' to tell the
user why the close of the application is being stopped rather than to
simply block it.
Just my US$0.02 (not worth as much as it used to be I know, but
still).
--
David Orriss Jr.
My blog: http://www.codethought.com/blog
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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