What’s the correct way for using a native Cocoa view in a JUCE plugin editor through NSViewComponent? I couldn’t find anything beyond the class reference, so I tried poking around. I’m getting some compiler errors after linking with Cocoa.framework and attempting to do the following in my plugin editor’s constructor:
MZ2synthAudioProcessorEditor::MZ2synthAudioProcessorEditor (MZ2synthAudioProcessor* ownerFilter)
: AudioProcessorEditor (ownerFilter)
// This is where our plugin’s editor size is set.
setSize (400, 300);
NSViewComponent *vc = new NSViewComponent(); vc->setView([[NSViewController alloc] initWithNibName:@"MZSynthView" bundle:nil]);
Have attached a screenshot of the errors that pop up after doing the above from Finder.h, MacMemory.h, Components.h. The MemoryBlock and Component look like some kind of class naming clash issue. Is this an issue with Xcode 4.3 or me?
Matias, the unashamed noob