• 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: John Stiles <email@hidden>
  • Date: Thu, 03 Jan 2008 22:36:07 -0800

I don't know the real answer to your problem, but as a workaround, you can try adding a delegate and implementing -windowShouldClose: to return NO. If that doesn't work, subclass NSWindow and override -close to do whatever you need (of course, calling through to [super close] if you want to allow closing).

Good luck!


Veena Mayya wrote:
Greetings!

We have encountered an issue with window "close" button. In our application, we are disabling the close button, as we are writing data to an output device.

We are showing an authentication dialog, which is put just before writing the data (using AuthorizationCopyRights).

In Leopard, soon after the display of the authentication dialog, the "close" button gets enabled. Even if we try to disable this button (after disposing the authentication dialog), the button remain enabled. (using [[AppWindow standardWindowButton:NSWindowCloseButton]setEnabled:NO];). This problem do on occur in Tiger and below OS.

Can anyone please let me know, if we need to set any other flags to disable the window "close" button in Leopard.

Thanks in advance.

Best Wishes
Veena




----------------------------------------------- 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
_______________________________________________

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: Veena Mayya <email@hidden>
References: 
 >Window close button issue in Leopard (From: Veena Mayya <email@hidden>)

  • Prev by Date: Window close button issue in Leopard
  • Next by Date: Re: How do I trigger IBAction with custom "button" based on NSView...
  • Previous by thread: Window close button issue in Leopard
  • Next by thread: Re: Window close button issue in Leopard
  • Index(es):
    • Date
    • Thread