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 ?



Indeed, This is also using a lot of private APIs and data types (such as CGSWindowID) that are not documented or documented to be explicitly different from how you are using them (in the -[NSWindow windowNumber] example). Just because they're the same now doesn't mean they will be into the future since it's explicitly documented to not be the same.

Ack, at 1/11/07, John Stiles said:

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();

--


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
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.