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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to