Initializing NSWindow with Carbon window
Initializing NSWindow with Carbon window
- Subject: Initializing NSWindow with Carbon window
- From: Andrew James <email@hidden>
- Date: Sun, 30 Jan 2011 02:17:12 -0800 (PST)
I have a legacy builder class that creates a Carbon window and I want to
initialize an NSWindow with this WindowRef.
I have a method on the builder GetProduct() that hands out the WindowRef. If I
use commands like the following
WindowRef w = builder.GetProduct();
ShowWindow( w );
SelectWindow( w );
then the window becomes displayed.
If I use the following:
NSWindow *window = [ [ NSWindow alloc ] initWithWindowRef: builder.GetProduct()
];
[ window makeKeyAndOrderFront ];
the window DOES not become displayed.
Are there some Carbon Events on the WindowRef I should be handling? Or am I
forgetting to set some attributes on the NSWindow that I should be?
Cheers,
--aj
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden