Re: initWithWindowRef (NSQuickDrawView solution)?
Re: initWithWindowRef (NSQuickDrawView solution)?
- Subject: Re: initWithWindowRef (NSQuickDrawView solution)?
- From: email@hidden
- Date: Tue, 12 Feb 2002 15:01:54 EST
Hey,
Has anyone ever tried to use the initWithWindowRef, i just don't know how to
use it. In fact i need to create a window to work with its windowRef, in a
Cocoa application.
I really need help !!!
Thkx
++++++++++++++++++++
Hi,
May be not exactly, what you need, but try as an option:
You can place onto the window NSQuickDrawView ether in IB or manually in code,
then use /say, in your windowController/
- (void)awakeFromNib {
[[self window] setContentView:qdView];
......
}
once window will become visible, the windowRef become valid, and you can use
[[self window] windowRef];
, or firstly lockFocus on qdView.
This works, I've use it to work with QuickTime API.
With regards,
/*****************************************************/
If i try your code and call IsValidWindowPtr([[self window] windowRef]) it
returns 0
Am i forgetting something?
_______________________________________________
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.