FROM : John C. Randolph
DATE : Mon Jul 17 08:38:18 2006
On Jul 16, 2006, at 9:15 PM, <amritendu.<email_removed>>
<amritendu.<email_removed>> wrote:
>
> Hi I.S,
>
> Yeah, I used the wrong terminology .
> I am talking about the close button on the title bar,need to
> disable it
> for some time and then enable it back.
> How do I achieve this.
That's not supported. If you want to prevent a window from being
closed, implement -windowShouldClose: in the window's delegate, and
do something like show an alert sheet that tells the user why you're
not going to let the window close.
-jcr
"This is not a book to be tossed aside lightly. Rather, it should be
hurled with great force." -Dorothy Parker
DATE : Mon Jul 17 08:38:18 2006
On Jul 16, 2006, at 9:15 PM, <amritendu.<email_removed>>
<amritendu.<email_removed>> wrote:
>
> Hi I.S,
>
> Yeah, I used the wrong terminology .
> I am talking about the close button on the title bar,need to
> disable it
> for some time and then enable it back.
> How do I achieve this.
That's not supported. If you want to prevent a window from being
closed, implement -windowShouldClose: in the window's delegate, and
do something like show an alert sheet that tells the user why you're
not going to let the window close.
-jcr
"This is not a book to be tossed aside lightly. Rather, it should be
hurled with great force." -Dorothy Parker
| Related mails | Author | Date |
|---|---|---|
| <amritendu.majumda… | Jul 14, 10:32 | |
| I. Savant | Jul 14, 14:32 | |
| <amritendu.majumda… | Jul 17, 06:15 | |
| John C. Randolph | Jul 17, 08:38 | |
| Vinay Prabhu | Jul 17, 08:59 | |
| John C. Randolph | Jul 17, 10:14 | |
| <amritendu.majumda… | Jul 17, 11:54 | |
| Vinay Prabhu | Jul 17, 12:05 | |
| <amritendu.majumda… | Jul 18, 16:24 |






Cocoa mail archive

