On Jan 7, 2012, at 6:33 AM, Jeremy Cowgar wrote:

On Jan 7, 2012, at 2:28 AM, Jeremy Cowgar wrote:

My plugin is working great under Windows, Linux and OS X (Carbon) but when I change the application build to Cocoa I get the error dialog when trying to run it:

Plugin "Abc.dylib:0" is not supported for Mac Cocoa

In my XCode project I have -framework Cocoa and I am compiling with the prefix file RBCocoaHeaders.h. What else do I have to do to make my plugin compatible with Cocoa? The plugin itself implements only a class that itself is console safe. So, no GUI dependencies at all in the plugin itself.

I think I figured it out, but I am open to better work arounds, if any. If I create the proper RBX directory structure, placing my .dylib in the Cocoa and Carbon directories, my plugin then works properly in Carbon and Cocoa. Thus, the problem is (I think) that REALstudio does not treat a bare .dylib as a Cocoa plugin but as a Carbon only.


For the RBX this is correct
The RBX needs a section for the Carbon & Cocoa sections separately
This is mentioned in the Cocoa Plugins.txt file in the Plugins SDK
where it says

To include your plugin in an RBX, add a "Mac Cocoa" folder to your RBX file inside of the "Build Resources" folder.

We'll have to review why the bare dylib isn't working though
I can't think of a reason off the top of my head

Norman Palardy

Real World 2012, THE Real Studio Event of the year!
http://realsoftware.com/community/realworld.php


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to