Skip to main content
Inspiring
November 26, 2008
Question

Issue: IDCS3, Leopard, Xcode 3.1.1, and ODFRC

  • November 26, 2008
  • 1 reply
  • 429 views
Hi Folks,

First off, I'm working with version 5.0.4 of both InDesign CS3 Debug and the IDCS3 SDK...

So, I have a CS3 plug-in that I have been working on under Xcode 2.4.1 on Mac OS X Tiger. All is well with this plug-in built under this configuration. Since this plug-in needs to work on CS4, I decided to try compiling the CS3 version in Xcode 3.1.1. I am hoping to dump Xcode 2.4.1 and use Xcode 3.x for CS3 and CS4 development.

The build of my CS3 plugin with Xcode 3.1.1 seemed to work just fine and I started debugging. All seemed fine at first, but during my testing process I discovered that when I clicked on the "Help" menu, my plug-in's ActionComponent::UpdateActionStates() method was called to update the menu items I installed in the "Edit" menu. That's right, clicking the "Help" menu sent the ActionIDs for my "Edit" menu items to UpdateActionStates(). I checked the .fr file and the menu defs and action defs all looked good.

I went back and built and debugged the plug-in (same source code) in Tiger and Xcode 2.4.1, and did not experience any problems at all.

My guess, after reading some early Xcode adopter's issues, is that there is some kind of CS3 SDK ODFRC compiler issue that does not play well with Xcode 3.1.1. I tried using the ODFRC compiler from CS4 to compile my CS3 plug-in in Xcode 3.1.1, but still the same results.

Has anyone had any experience like this? Should I stick with 2.4.1 and Tiger? Any suggestions and recommendations would be greatly appreciated!

THANKS!

-- Jim
This topic has been closed for replies.

1 reply

Inspiring
November 27, 2008
Hi Folks,

Just an update. It appears that what I thought to be a Xcode issue might actually be a Leopard/IDCS3 issue.

If I compile my CS3 plug-in using Xcode 2.4.1 in Tiger, and then install that plug-in in CS3 running on Leopard (10.5.5), clicking on the InDesign "Help" menu item fires UpdateActionStates() requesting me to update the enabled/disabled state of my "Edit" menu items.

Does anybody have a similar experience with menu item updating in Leopard?

FYI: Here's my .fr file code (maybe I'm missing something):

MENU DEFS:

    // Add "My Plug-In" submenu to the Edit menu
    0, // No ActionID to register
    "Main:&Edit:" kMyPlugPluginsMenuKey kSDKDefDelimitMenuPath,
    kInCopyBridgeMenuPosition + 1,
    kSDKDefIsNotDynamicMenuFlag,
 
    // Add "Menu Item 1" menu item in the "My Plug-In" submenu in the Edit menu.
    kMyPlugItem1EditMenuActionID,
    "Main:&Edit:" kMyPlugPluginsMenuKey,
    90,
    kSDKDefIsNotDynamicMenuFlag,
 
    // Add "Menu Item 2" menu item in the "My Plug-In" submenu in the Edit menu.
    kMyPlugItem2EditMenuActionID,
    "Main:&Edit:" kMyPlugPluginsMenuKey,
    100,
    kSDKDefIsNotDynamicMenuFlag,

ACTION DEFS:

    // Edit menu item: Menu Item 1
    kMyPlugActionComponentBoss,
    kMyPlugItem1EditMenuActionID,
    kMyPlugItem1MenuItemKey,
    kOtherActionArea,
    kNormalAction,
    kDisableIfLowMem | kDisableIfNoFrontDocument | kCustomEnabling,
    kInvalidInterfaceID,
    kSDKDefVisibleInKBSCEditorFlag,

    // Edit menu item: Menu Item 2
    kMyPlugActionComponentBoss,
    kMyPlugItem2EditMenuActionID,
    kMyPlugItem2MenuItemKey,
    kOtherActionArea,
    kNormalAction,
    kDisableIfLowMem | kDisableIfNoFrontDocument | kCustomEnabling,
    kInvalidInterfaceID,
    kSDKDefVisibleInKBSCEditorFlag,

Thanks!

-- Jim