Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >RE: Disabling Certain Title bar controls (From: <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.