Hi All,
I was looking in FreeGrid Plugin that uses flex for UI.To do so it register the csxs events (for communication b/w flex panel and c++ plug-in) in PostStartupPlugin().
here is the code..
///Start
ASErr FreeGridPlugin::PostStartupPlugin()
{
if(csxs::event::kEventErrorCode_Success == freeGridDialogController->RegisterCSXSEventListeners())
fIsRegistered = true;
return kNoErr;
}
//End
But it is not being registered here.
It also put the same code in handling the
Hi,
This is a bug in this sample - you should try to register your event listeners when you recieve a kAICSXSPlugPlugSetupCompleteNotifier notification, not post startup. You can add a notifier handle and listen out for it in the usual way - FreeGrid actually does this in addition to trying to register on PostStartup.
We've already fixed this for the next release of the SDK - thanks for spotting it!
Louis
HERE'S A WORKAROUND FOR THE BUG!
It comes from David_a_Clark in another forum:
"Ah, this is a known issue. For CS5 the workaround I used was to start an AI Timer in my plug-in's startup code which went off after '1 tick' (AI SDK terminology, IIRC). After 1 tick, PlugPlug has started up and is available to use.
In the next version of AI SDK I believe there will be a 'PlugPlug set up' notifier which removes the need for the timer workaround."
North America
Europe, Middle East and Africa
Asia Pacific