Skip navigation.
 
mlRe: Window close button issue in Leopard
FROM : John Stiles
DATE : Fri Jan 04 07:36:07 2008

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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>

Related mailsAuthorDate
mlWindow close button issue in Leopard Veena Mayya Jan 4, 07:06
mlRe: Window close button issue in Leopard John Stiles Jan 4, 07:36
mlRe: Window close button issue in Leopard Veena Mayya Jan 4, 10:33
mlRe: Window close button issue in Leopard David Orriss Jr Jan 5, 04:58
mlRe: Window close button issue in Leopard Veena Mayya Jan 7, 08:05
mlRe: Window close button issue in Leopard David Orriss Jr Jan 8, 07:27
mlRe: Window close button issue in Leopard Veena Mayya Jan 9, 05:25
mlRe: Window close button issue in Leopard Lee Ann Rucker Jan 10, 02:42