• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Initializing NSWindow with Carbon window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Initializing NSWindow with Carbon window
      • From: Uli Kusterer <email@hidden>
    • Re: Initializing NSWindow with Carbon window
      • From: Graham Cox <email@hidden>
References: 
 >Re: readInBackgroundAndNotify and rsync output (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: NSScrollView, centering document view?
  • Next by Date: Re: Initializing NSWindow with Carbon window
  • Previous by thread: Re: readInBackgroundAndNotify and rsync output
  • Next by thread: Re: Initializing NSWindow with Carbon window
  • Index(es):
    • Date
    • Thread