• 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
Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs?


  • Subject: Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs?
  • From: Luke Bellandi <email@hidden>
  • Date: Wed, 25 May 2005 14:34:13 -0700

On May 25, 2005, at 2:25 PM, Evan Olcott wrote:

On May 25, 2005, at 4:08 PM, Luke Bellandi wrote:

With this code, I can get the carbon windows to not act deactivated, but apparently there's another trick so that the *Cocoa* window doesn't appear (or become) deactivated. Any one know what that one is?

Use NSPanel instead (subclasses NSWindow.)  Create the NSPanel with NSNonactivatingPanelMask, which is also available as an option in Interface Builder's attributes inspector.

- Luke

Indeed this is what I am doing for my Cocoa hosting window (double-checked it in IB). I have other "non-activating NSPanels" in my app, so there are times where the AU hosting window *should* become inactive, just not from it's child carbon window click...

Should the carbon child window I'm building have any special settings in IB perhaps?

No.  AU Lab creates its window programmatically, but there are no special settings involved in its setup.

Poking around, it seems to be the difference between being able to become the "key window". Cocoa docs says if a window doesn't have a title bar or a resize bar, it can't become key - this carbon window DOESN'T but CAN.

Yes, that's the case in AULab as well.  But in re-reading the sentence above, it's applying Cocoa documentation to Carbon objects.  While there are a great deal of similarities between the two, they are not one and the same

AULab isn't using an NSPanel, is it? It's got a big titlebar!?

Actually, NSPanels default appearance is exactly like NSWindow's.  Note NSUtilityWindowMask from NSPanel.h is the constant used to indicate a thin title bar for a utility panel.  That thin title bar is strictly cosmetic.  While any on-screen-window that has a thin titlebar is an NSPanel, not all NSPanels have thin titlebars.

- Luke



Ev
Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering

http://www.audiofile-engineering.com/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs?
      • From: Evan Olcott <email@hidden>
References: 
 >Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs? (From: Evan Olcott <email@hidden>)
 >Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs? (From: William Stewart <email@hidden>)
 >Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs? (From: Evan Olcott <email@hidden>)
 >Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs? (From: William Stewart <email@hidden>)
 >Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs? (From: Evan Olcott <email@hidden>)
 >Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs? (From: Luke Bellandi <email@hidden>)
 >Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs? (From: Evan Olcott <email@hidden>)

  • Prev by Date: ADC Plug-Fest featuring Audio Units
  • Next by Date: Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs?
  • Previous by thread: Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs?
  • Next by thread: Re: New way for Cocoa AU hosts to wrap Carbon AU GUIs?
  • Index(es):
    • Date
    • Thread