• 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
Updating Dock mini windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating Dock mini windows


  • Subject: Updating Dock mini windows
  • From: Peter Sichel <email@hidden>
  • Date: Mon, 8 Apr 2002 09:38:48 -0400

I'm trying to use NSWindow setMiniwindowImage to update the
appearance of a window while it is minimized in the Dock,
but I must be missing something because it isn't working.

// update mini window in Dock
if ([[self window] isMiniaturized]) {
NSImage* anImage;
NSData* epsData;
// get the desired image
epsData = [plotView dataWithEPSInsideRect:[plotView bounds]];
anImage = [[[NSImage alloc] initWithData:epsData] autorelease];
[[self window] setMiniwindowImage:anImage];
}

setMiniwindowTitle works as expected, and I've tried using various
images (NSApplicationIcon) and options (setUsesEPSOnResolutionMismatch)
without success.

The window plots the last minute of network throughput, and I'm
trying to show just the plot when the window is miniaturized to
the Dock. Does it matter if the resolution or aspect ratio of
the image doesn't match the window?

Any insight would be much appreciated.

- Peter

--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: why Obj-C (From: Mike Brinkman <email@hidden>)

  • Prev by Date: Re: Several questions on Objective C
  • Next by Date: Re: Cocoa File Copy on MacOS X
  • Previous by thread: Re: why Obj-C
  • Next by thread: Re: why Obj-C
  • Index(es):
    • Date
    • Thread