Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Kyle Sluder
On Mon, Jan 31, 2011 at 7:57 AM, Andrew James wrote: > The application I'm writing hosts Audio Units.  Many latest rev quite relevant > Audio Units still only support a Carbon based AU view.  So at this point, > without thumbing my nose at the plug-in industry, I have to support Carbon > based >

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Uli Kusterer
On Jan 31, 2011, at 4:57 PM, Andrew James wrote: > The application I'm writing hosts Audio Units. Many latest rev quite > relevant > Audio Units still only support a Carbon based AU view. So at this point, > without thumbing my nose at the plug-in industry, I have to support Carbon > based >

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Andrew James
views. Cheers, --aj - Original Message From: Uli Kusterer To: Andrew James Cc: list-cocoa-dev Sent: Mon, January 31, 2011 1:39:21 AM Subject: Re: Initializing NSWindow with Carbon window On 30.01.2011, at 11:17, Andrew James wrote: > I have a legacy builder class that creates a Carbo

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Uli Kusterer
On 30.01.2011, at 11:17, Andrew James wrote: > I have a legacy builder class that creates a Carbon window and I want to > initialize an NSWindow with this WindowRef. What for? What are you trying to achieve? Nonestly, I wouldn't recommend mixing Carbon and Cocoa windows in the same application.

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Kyle Sluder
On Sun, Jan 30, 2011 at 11:45 PM, Andrew James wrote: > I've done some investigating and still getting the behavior that the window > does > not display from the code below > > Interestingly,  if you look at the two ShowWindow/SelectWindow pairs. I will > see > the window when the first one is u

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
k down from this and write my own class that does the controlling of Cocoa vs. Carbon windows. --aj - Original Message ---- From: Graham Cox To: Andrew James Cc: list-cocoa-dev Sent: Sun, January 30, 2011 8:18:23 PM Subject: Re: Initializing NSWindow with Carbon window On 31/01/2011, at

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Graham Cox
On 31/01/2011, at 3:02 PM, Andrew James wrote: > For once I actually should have "cut-and-paste": > > NSWindow *wrapper = [ [ NSWindow alloc ] initWithWindowRef: > carbonBuilder.GetProduct() ]; > [ wrapper makeKeyAndOrderFront: self]; > > I did have the sender being sent correctly. Window sti

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
ike showWindow. Implementing a window delegate my also help. I've got options that I'm going to explore. Cheers, --aj From: Graham Cox To: Andrew James Cc: list-cocoa-dev Sent: Sun, January 30, 2011 3:04:38 AM Subject: Re: Initializing NSWindow with Carb

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Graham Cox
On 30/01/2011, at 9:17 PM, Andrew James wrote: > [ window makeKeyAndOrderFront ]; This should be [window makeKeyAndOrderFront:nil]; (or you could pass a valid sender, though I suspect it's ignored) --Graham ___ Cocoa-dev mailing list (Cocoa-dev@l