One of those questions
One of those questions
- Subject: One of those questions
- From: Dustin Mierau <email@hidden>
- Date: Sun, 24 Feb 2002 22:42:53 -0800
So I have been searching old cocoa-dev and macosx-dev (omnigroup)
archives for a clear answer on how to do this and have come up with
little to nothing. I know it is possible, there just does not seem to be
a public API for cocoa developers. Basically I have an NSWindow with
some content that updates from time to time, the user minimizes it and I
want to update the miniwindow image to the current content. I have seen
this done in applications like OmniWeb and I am pretty sure the browser
windows in OmniWeb are not carbon windows.
I have looked through the class dump of AppKit and have come up with
this:
- (void)updateInDock;
- (NSWindow*)_makeMiniView;
- (WindowRef)_windowRef;
1) - (void)updateInDock seems to redraw the window in the dock, but not
with the new contents, just sort of refreshes. So I assume I have to
update it's source, I am not sure what that is.
2) - (NSWindow*)_makeMiniView returns an NSWindow, when I call show on
that it just deminiaturizes the main window from the dock.
3) - (WindowRef) _windowRef appears to return a valid WindowRef where
NSWindow::windowRef doesn't. I know I have to create an NSWindow from a
WindowRef for the public windowRef method to work, but I don't want to
use a carbon window here. The reason I am trying to get a valid
WindowRef is because I noticed the function in MacWindows.h to update a
windows dock tile, when I call that on the WindowRef returned by this
method it appears to have no effect.
So this is all I could really find, I found old posts to this question
in the omnigroup archives, but only posts with no responses. If your
could help me out with this I would of course repay you with gold bars
and women.
Let's get this answered and archived for everyones benefit, even if the
only way is nasty ;)
Thanks,
- dustin
_______________________________________________
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.