mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
AU class bundle fix.
This commit is contained in:
parent
408399ddff
commit
27b5dc4a3b
1 changed files with 3 additions and 4 deletions
|
|
@ -261,13 +261,12 @@ public:
|
|||
|
||||
static JuceUICreationClass cls;
|
||||
|
||||
const File bundleFile (File::getSpecialLocation (File::currentApplicationFile));
|
||||
NSString* bundlePath = [NSString stringWithUTF8String: (const char*) bundleFile.getFullPathName().toUTF8()];
|
||||
NSBundle* b = [NSBundle bundleWithPath: bundlePath];
|
||||
// (NB: this may be the host's bundle, not necessarily the component's)
|
||||
NSBundle* bundle = [NSBundle bundleForClass: cls.cls];
|
||||
|
||||
AudioUnitCocoaViewInfo* info = static_cast <AudioUnitCocoaViewInfo*> (outData);
|
||||
info->mCocoaAUViewClass[0] = (CFStringRef) [juceStringToNS (class_getName (cls.cls)) retain];
|
||||
info->mCocoaAUViewBundleLocation = (CFURLRef) [[NSURL fileURLWithPath: [b bundlePath]] retain];
|
||||
info->mCocoaAUViewBundleLocation = (CFURLRef) [[NSURL fileURLWithPath: [bundle bundlePath]] retain];
|
||||
|
||||
return noErr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue