I found that I can use [NSDockTile display] to refresh the icon, and it works!
Arjan On Fri, Dec 26, 2014 at 10:50 AM, Arjan van Leeuwen <arj...@opera.com> wrote: > Hi, > > After I have called [NSWindow miniaturize], is it possible to refresh the > miniaturized dock image somehow? I have changing contents in a window, and > would like to update the miniaturization to reflect the actual contents. > > I've found [NSWindow setMiniwindowImage], but this only allows me to set a > completely custom image. I want to refresh the content of the image with > the current content, in such a way that it still looks like the standard > minimized window (with the application icon in the bottom-right corner, for > example). If I simply use a snapshot of my own application and use that > with setMiniwindowImage, it doesn't look the same. > > Alternatively, if there's a function to generate the dock image, I could > use that with setMiniWindowImage. > > Any ideas? > > Arjan > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com