Right. I'm trying to implement a transition effect not readily supported in macwindows.h.
I'm referencing CGSPrivate.h that calls undocumented transition calls. The aim is to
implement a window "flip", similar to the Parallels emulator. Here's the code I got.
spec.wid=a[self windowNumber]; is the only Objective C call I need to do from Carbon. Does
this make sense?
CGSTransitionSpec spec;
// assign our transition handle
handle = -1;
// specify our specifications
spec.unknown1=0;
spec.type=CGSCube; // CGSFlip ???
spec.option=CGSLeft;
spec.backColour=NULL;
spec.wid=a[self windowNumber];
// Let’s get a connection
CGSConnection cgs= _CGSDefaultConnection();
----- Original Message -----
From: Rosyna <email@hidden>
Date: Thursday, January 11, 2007 11:13 am
Subject: Re: Getting NSWindow windownumber ?
> Are you talking about a WindowRef's window number, an NSWindow's
> WindowRef, an NSWindow's window number, or something else?
>
> I ask because the NSWindow's window number doesn't seem to be used
> anywhere in Carbon (The documentation says it is different than a
> CGSWindowID). And your followup mentions a syntax error.
>
> I guess a better question is, why do you need the window number?
>
> Also, objective-c code won't compile in standard C or C++ files.
> They
> have to be in .m or .mm files (or some other Objective-C source
> code
> file).
>
> Ack, at 1/11/07, Rosemary Quince said:
>
> >Is it possible to obtain the NSWindow windowNumber from Carbon?
> If so, how?
>
> --
>
>
> Sincerely,
> Rosyna Keller
> Technical Support/Carbon troll/Always needs a hug
>
> Unsanity: Unsane Tools for Insanely Great People
>
> It's either this, or imagining Phil Schiller in a thong.
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden