Re: Select a carbon window within a Cocoa application
Re: Select a carbon window within a Cocoa application
- Subject: Re: Select a carbon window within a Cocoa application
- From: Chris Reed <email@hidden>
- Date: Thu, 5 Jun 2003 14:40:42 -0500
Yes, I see this problem quite often--very annoying. It also happens
with a single Carbon window in a Cocoa app.
The workaround is to switch to another application and click on the
Carbon window to bring your app back.
I haven't filed a bug yet, mostly because I haven't explored the
problem enough to know if it's mine or Apple's. But someone else seeing
it too makes it looks more like Apple's bug.
cheers
-chris
On Thursday, June 5, 2003, at 11:30 AM, Jean Bovet wrote:
I just ran into a little problem using carbon window (used to host AU
from my Cocoa application). When I first create one, it appears in
front of the other. After creating several window and bringing a pure
Cocoa window in front, I cannot bring back any carbon window in front
(like if I was holding the Command key). It seems to happen only when
several carbon window are opened. Does anyone know what I'm doing wrong
?
The code looks like this:
...
err = CreateNibReferenceWithCFBundle(bundleRef,
CFSTR("CarbonWindow"), &nibRef);
err = CreateWindowFromNib(nibRef, CFSTR("Window"), &mWindowRef);
mCarbonWindow = [[NSWindow alloc] initWithWindowRef:mWindowRef];
[mCarbonWindow setDelegate:self];
[mCarbonWindow setTitle:mName];
[mCarbonWindow makeKeyAndOrderFront:nil];
...
Thanks a lot.
Jean Bovet
------------------------------------------------------------------
Jean Bovet
Inginieur diveloppement
Laboratoire de Productique et Robotique
E-mail : email@hidden - Voice : ++41 (0)32 930 38 43
EIAJ, Site Le Locle
7, avenue de l'Httel-de-Ville, CH-2400 Le Locle
------------------------------------------------------------------
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.