RE: Disabling Certain Title bar controls
RE: Disabling Certain Title bar controls
- Subject: RE: Disabling Certain Title bar controls
- From: Vinay Prabhu <email@hidden>
- Date: Mon, 17 Jul 2006 12:29:49 +0530
- Importance: Normal
standardWindowButton, might be helpful for you.
send the constant NSWindowCloseButton and get the NSButton for the close
button.
and try to hide the button when not required.
I have not tried this method, but this might work or I might be 100%
wrong...
-----Original Message-----
From: cocoa-dev-bounces+vinayprabhu=email@hidden
[mailto:cocoa-dev-bounces+vinayprabhu=email@hidden]On
Behalf Of John C. Randolph
Sent: Monday, July 17, 2006 12:08 PM
To: email@hidden
Cc: I. Savant; Cocoa Dev
Subject: Re: Disabling Certain Title bar controls
On Jul 16, 2006, at 9:15 PM, <email@hidden>
<email@hidden> 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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
in
This email sent to email@hidden
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden