• 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: Window close button issue in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Window close button issue in Leopard
      • From: David Orriss Jr <email@hidden>
  • Prev by Date: Re:Making undo work with complicated NSTextView subclass
  • Next by Date: Mock Objects?
  • Previous by thread: Re: Window close button issue in Leopard
  • Next by thread: Re: Window close button issue in Leopard
  • Index(es):
    • Date
    • Thread