Select a carbon window within a Cocoa application
Select a carbon window within a Cocoa application
- Subject: Select a carbon window within a Cocoa application
- From: Jean Bovet <email@hidden>
- Date: Thu, 5 Jun 2003 18:30:56 +0200
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.