Re: Window close button issue in Leopard
Re: Window close button issue in Leopard
- Subject: Re: Window close button issue in Leopard
- From: David Orriss Jr <email@hidden>
- Date: Mon, 7 Jan 2008 22:27:07 -0800
Veena,
Ah ok.. that's a little more difficult.. but I did it (and I'm a
relative newb at Cocoa programming so I figure anyone can probably
pull this off ;) ).
Try this simple project I put together. I did it in XCode 3. Let me
know if you need it in XCode 2.5.
http://codethought.com/downloads/DisableCloseButton.zip
On Jan 6, 2008, at 11:05 PM, Veena Mayya wrote:
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 ha! ndled 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 Windo! w 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.
--
David Orriss Jr.
My blog: http://www.codethought.com/blog
_______________________________________________
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