FROM : Veena Mayya
DATE : Fri Jan 04 10:33:36 2008
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_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/jstiles%
>> 40blizzard.com
>>
>> This email sent to <email_removed>
>
-----------------------------------------------
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.
DATE : Fri Jan 04 10:33:36 2008
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_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/jstiles%
>> 40blizzard.com
>>
>> This email sent to <email_removed>
>
-----------------------------------------------
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.
| Related mails | Author | Date |
|---|---|---|
| Veena Mayya | Jan 4, 07:06 | |
| John Stiles | Jan 4, 07:36 | |
| Veena Mayya | Jan 4, 10:33 | |
| David Orriss Jr | Jan 5, 04:58 | |
| Veena Mayya | Jan 7, 08:05 | |
| David Orriss Jr | Jan 8, 07:27 | |
| Veena Mayya | Jan 9, 05:25 | |
| Lee Ann Rucker | Jan 10, 02:42 |






Cocoa mail archive

