Re: multiple Cocoa views
Re: multiple Cocoa views
- Subject: Re: multiple Cocoa views
- From: Michael Hopkins <email@hidden>
- Date: Mon, 20 Aug 2007 14:00:02 -0700
Jens,
Sounds like the docs could be made more clear. You should use one of
these structs but you may use an array of class names. I think most
cocoa hosts assume that you will only have one view class for your
au, but this should work in AULab.
Hope this helps.
Michael
On Aug 19, 2007, at 1:54 PM, Jens Groh wrote:
Hello Apple team,
unfortunately, your document "WritingCocoaAUUIs.pdf" is ambiguous.
Each audio unit that supports a Cocoa UI view must support the
following
property: kAudioUnitProperty_CocoaUI
The value of this property is the following struct:
typedef struct AudioUnitCocoaViewInfo {
CFURLRef mCocoaAUViewBundleLocation;
CFStringRef mCocoaAUViewClass[1];
};
mCocoaAUViewBundleLocation - contains the location of the bundle
which
the host app can then use to locate the bundle
mCocoaAUViewClass - contains the names of the classes that
implements the
required protocol for an AUView
The AU can return an array of these view info structures (similar
to the CarbonUI
view component id's).
Should I read (1) "name of the class that implements", or (2)
"names of the classes that implement"?
The last sentence "return an array of these view info structures"
indicates that you mean (1).
But the fact that AULab works with multiple Cocoa views when I
assume (2), yet issues an error when I assume (1) indicates that
you rather meant mCocoaAUViewClass[kVariableLengthArray], and that
exactly one such structure shall be returned.
2007-08-19 20:33:09.938 AU Lab[5026] *** -[NSURL
_getCString:maxLength:encoding:]: selector not recognized [self =
0x15461eb0]
2007-08-19 20:33:09.938 AU Lab[5026] *** NSThread: ignoring
exception '*** -[NSURL _getCString:maxLength:encoding:]: selector
not recognized [self = 0x15461eb0]' that raised during delayed
perform of target 0x154c2550 and selector 'editEffect:'
Thanks for any help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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