• 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: Carbon view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbon view


  • Subject: Re: Carbon view
  • From: Stefan Gretscher <email@hidden>
  • Date: Tue, 11 Sep 2007 13:16:28 +0200

Hi Stefan,

Am 11.09.2007 um 00:44 schrieb Stefan Huber:
I feel a little confused at the moment. I've been building some little AUs with a Cocoa view. So far everything is fine, but some host are not able to use Cocoa views. Even Logic 7.1 doesn't seem to handle that without side effects (I've already been writing to this list regarding that a few month ago) but anyway...
To me it seem that you also have to provide a Carbon view with your AUs in order to guarantee a professional looking and usable plug in. The trouble I have is that it's quite hard to find good information to get started with Carbon. I often just find links to tutorials on the apple website, that have been removed sometimes in the past. Furthermore a lot of people tell, that it's better to not use carbon any more.
So, what to do? Is there a simple solution, or where do I find good resources or even better tutorials to get started with the carbon thing - especially the stuff I need to know for a carbon view?
A possible solution for you could be to wrap up your Cocoa view in a Carbon view.
Have a look here, there's a dedicated section about "Using a Cocoa User Interface in a Carbon Application":
http://developer.apple.com/documentation/Cocoa/Conceptual/ CarbonCocoaDoc/


Remember that you're living in a plug-in, not an application, so if you're running in a Carbon host you must make sure that the Cocoa runtime stuff is started up as needed.
Also, pay attention on when to provide autorelease pools (because Cocoa always assumes that there is one).


Also make sure to read this:
/Developer/Examples/CoreAudio/Documentation/AudioUnits/ CarbonViewCocoaWindow.rtfd
Even though it's about the other way round (wrapping Carbon in Cocoa), it is specific to AUs, explains the basic concept of bridging between Cocoa and Carbon and provides a couple of useful links.


We are using the wrapping approach to handle Cocoa AU views for Logic, so if you get stuck on your way I might be able to help.
However as you've noticed there are a few glitches with this technology even in Logic (though 7.2.1 is a lot better that 7.1 in this regard, so you should upgrade), but I still think that while it's certainly not a perfect solution it may still be good enough for your plug-in to justify not doing a dedicated Carbon version of your UI.


Best,
Stefan



------------------------------------
Stefan Gretscher
plug-in development & 3rd party developer support

phone: (+49)-4101-495-586 (Central European Time)
AU developer support: email@hidden
TDM developer support: email@hidden

Apple GmbH
Geschäftsführung: Georges Guyon de Chemilly
Sitz der Gesellschaft: München
Amtsgericht München, HRB 66158



_______________________________________________
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


References: 
 >Carbon view (From: Stefan Huber <email@hidden>)

  • Prev by Date: Re: ALAC bit depth hint
  • Next by Date: Re: Resend: Core Audio Clock example?
  • Previous by thread: Carbon view
  • Next by thread: Playing of the same audiofile n times...
  • Index(es):
    • Date
    • Thread