Preventing deminiaturization
Preventing deminiaturization
- Subject: Preventing deminiaturization
- From: David Soloveichik <email@hidden>
- Date: Thu, 6 Jan 2005 18:14:36 -0800 (PST)
I want to make a window that cannot be deminiaturized from the dock, but
whose title and image there can be updated. I found that overriding
[NSWindow isMiniaturized] to always return NO makes the window always stay
in the dock (after it is miniaturized), even if the user clicks on it.
The problem is that setTitle and setMiniwindowTitle apparently call
isMiniaturized and if it returns NO, they don't update the window tile in
the dock. I have tried to override setTitle as follows:
-(void)setTitle:(NSString *)aString
{
forceSayMini = YES; //Force isMiniaturized to return YES
[super setTitle:aString];
forceSayMini = NO; //isMiniaturized will continue returning NO
}
but that doesn't work. It appears that forceSayMini is NO when the
isMiniaturized call is made.
Ideally, I would like to somehow intercept the communication between my
app and the dock. Is there a way to do it in Cocoa/Carbon/etc?
Thanks a lot!
_______________________________________________
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