• 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
Select a carbon window within a Cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
------------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: typingAttributes?
  • Next by Date: Unzip tool -- a bit off topic
  • Previous by thread: Re: setInterfaceStyle
  • Next by thread: Re: Select a carbon window within a Cocoa application
  • Index(es):
    • Date
    • Thread