Re: What's the proper way of creating a temporary NSWindow from a Carbon window?
Re: What's the proper way of creating a temporary NSWindow from a Carbon window?
- Subject: Re: What's the proper way of creating a temporary NSWindow from a Carbon window?
- From: "Sean McBride" <email@hidden>
- Date: Fri, 6 May 2005 10:43:38 -0400
- Organization: Rogue Research
On 2005-05-06 15:10, Jonathan del Strother said:
>My iTunes plugin needs a list of supported resolutions from the
>screen that the iTunes window is on.
The iTunes window may be on more than one screen.
>It's doing this by creating an NSWindow using initWithWindowRef.
>
> NSWindow* iTunesWindow = [[NSWindow alloc]
>initWithWindowRef:FrontWindow()];
How does that tell you the supported resolutions?
Are iTunes plugins even allowed to be Cocoa? iTunes is Carbon afterall.
There are non-Cocoa ways to get screen resolutions you know, see
CGDirectDisplay for example.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden