Photoshop plug-ins with Cocoa

  • I'm in the midst of making a Photoshop plug-in using Cocoa for the
    interface, and so far so good, but there is some concern were I work
    that eventually we may run into a show stopper. Has any one out there
    done this? Did you run into anything that made you stop and move back
    to a more traditional approach, i.e. Carbon?

    One minor issue I have run across is trying to replace Photoshop's
    menu bar with ours via a Cocoa nib file. It works sometimes but other
    times it will result in the menu bar having a blank title for the
    Photoshop menu followed by our Photoshop menu so I get something that
    looks like:

    "Apple"    <blank area>  Photoshop  File  Edit  ...

    Any insights, caveats, etc. would be appreciated. Thanks.

    Milt
  • At 8:37 AM -0700 10/11/06, Milton Sagen wrote:
    > I'm in the midst of making a Photoshop plug-in using Cocoa for the
    > interface, and so far so good, but there is some concern were I work
    > that eventually we may run into a show stopper. Has any one out there
    > done this? Did you run into anything that made you stop and move back
    > to a more traditional approach, i.e. Carbon?

    The usual issue mentioned is that Cocoa plugins can't be unloaded and PS
    does unload plugins.  See for example this thread:

    http://www.cocoabuilder.com/archive/message/cocoa/2005/11/30/151472

    There are a number of other threads in the archives discussing unloading
    plugins and PS plugins.

    Use of categories is problematic.  Also, I'm unclear on whether things work
    as expected if multiple plugins use the same class names or same category
    names and are all loaded at the same time.

    Also, obviously since Cocoa is Mach-O only you won't (easily) support older
    versions of PS.

    I assume that with the next release of PS, or the next release of the PS
    SDK, Adobe will either explicitly support Cocoa plugins or will have a
    stated policy on such support, which is currently lacking.

    --
    Brian  Stern
    <BrianS99...>
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today