Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting NSWindow windownumber ?



The "a" was typo, sorry.  I'm just trying implement a transition "flip" using the following link info: http://dev.lipidity.com/tutorial/xcode-transitions-
core-graphics-image-2 .  It's just a learning excersize at the moment.  If easy to do, I'll leave it in.  My challenge at the moment is incorporating an .m 
file in my carbon project, which in its self would prove to be a valuable learning goal. 

----- Original Message -----
From: John Stiles <email@hidden>
Date: Thursday, January 11, 2007 11:34 am
Subject: Re: Getting NSWindow windownumber ?

> I think you're in over your head. This code is meant for an 
> NSWindow  
> subclass (evident by the use of "self").
> Also, the letter "a" to the left of the open bracket appears to 
> just  
> be garbage.
> 
> 
> On Jan 11, 2007, at 11:21 AM, Rosemary Quince wrote:
> 
> > 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/jstiles% 
> > 40blizzard.com
> >
> > This email sent to email@hidden
> 
>
 _______________________________________________
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

References: 
 >Getting NSWindow windownumber ? (From: Rosemary Quince <email@hidden>)
 >Re: Getting NSWindow windownumber ? (From: Rosyna <email@hidden>)
 >Re: Getting NSWindow windownumber ? (From: Rosemary Quince <email@hidden>)
 >Re: Getting NSWindow windownumber ? (From: John Stiles <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.