Updating Dock mini windows
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] initWith
Data: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.