• 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
CocoaAUView spec. additions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CocoaAUView spec. additions


  • Subject: CocoaAUView spec. additions
  • From: Luke Bellandi <email@hidden>
  • Date: Wed, 17 Dec 2003 09:50:08 -0800

Hi All,

We'll be releasing updates to the CocoaUI spec. and corresponding
updates to the SampleEffect's CocoaUI with our next SDK.

But until that time, if you're developing CocoaUI for an AudioUnit, or
a HostApp supporting them, 2 things that we've added to the spec that
you should be aware of.

With regard to the AUCocoaUIView protocol's function:

- (NSView *) uiViewForAudioUnit:(AudioUnit)inAudioUnit
withSize:(NSSize)inPreferredSize;

1) View classes implementing the AUCocoaUIView protocol should function
as a factory, and need to return a unique view for each call. It is
the hosting application's responsibility to cache (as needed) the views
it creates.

2) Views should be returned with a retain count of 1, and be returned
autoreleased. This puts again puts all view-management responsibility
on the host. And while this isn't strictly a 'convenience
constructor', it is returning a newly allocated object (the view)
without the host specifically allocating space for it. And this is
what Cocoa's convenience constructors (like + [NSDictionary
dictionary]) do, so we behave similarly (i.e., by returning the new
object with a retain count of 1, and autoreleased.)

Thanks,
Luke
_______________________________________________
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.

  • Prev by Date: Re: Cocoa and Audiounits
  • Next by Date: Another Threading Issue
  • Previous by thread: AU Development Contract Available
  • Next by thread: Another Threading Issue
  • Index(es):
    • Date
    • Thread