• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Preventing deminiaturization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Problems with NSTimer and NSRunLoop/CFRunLoop
  • Next by Date: Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
  • Previous by thread: [SOLVED] Re: continuing after fork() (Re: Problems with NSTimer and NSRunLoop/CFRunLoop)
  • Next by thread: Cocoa programming-Add control at the run-time
  • Index(es):
    • Date
    • Thread