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: Fri, 4 Jan 2008 15:03:36 +0530
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.
Regards
Veena
On 04-Jan-08, at 12:06 PM, John Stiles wrote:
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:
40blizzard.com
This email sent to email@hidden
-----------------------------------------------
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