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 ?



On 1/11/07 2:21 PM, "Rosemary Quince" <email@hidden> 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?

If you are going to use CGSPrivate.h anyway, you might as well use the
private API to get the window number

typedef int        CGSWindow;
extern CGSWindow GetNativeWindowFromWindowRef(WindowRef);

This gives you the windownumber for the private APIs.

Of course, this may all break at any time. Use at your own risk -- just like
the rest of the CGSPrivate.h

Best regards,

B.J. Buchalter

Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451


 _______________________________________________
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: 
 >Re: Getting NSWindow windownumber ? (From: Rosemary Quince <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.