• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: initWithWindowRef (NSQuickDrawView solution)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: about help
  • Next by Date: Re: about help
  • Previous by thread: Switching resolution and positioning the window
  • Next by thread: Re: -LoginHook not working?
  • Index(es):
    • Date
    • Thread