CreateQDContextForCollapsedWindowDockTile does not work in a cocoa context
CreateQDContextForCollapsedWindowDockTile does not work in a cocoa context
- Subject: CreateQDContextForCollapsedWindowDockTile does not work in a cocoa context
- From: "Andreas Kaenner" <email@hidden>
- Date: Fri, 16 Apr 2004 15:04:02 +0200
Hi,
I want show output from a quicktime sequencegrabber in a window dock tile
within a cocoa application, but unfortunately It does not work, because I
get a windowWrongStateErr if I try to create a QDContext.
Has anyone a workaround for this. I would say it should work..
Andreas
- (void)windowDidMiniaturize:(NSNotification *)aNotification
{
CGrafPtr context;
OSStatus err = CreateQDContextForCollapsedWindowDockTile([[self
window]windowRef], &context);
// err = windowWrongStateErr = -5615, /* window is not in a
state that is valid for the current action*/
NSLog(@"*** CreateQDContextForCollapsedWindowDockTile err = %d", err);
if(IsWindowCollapsed([[self window]windowRef]))
NSLog(@"IsWindowCollapsed(ref) == TRUE");
}
_______________________________________________
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.