Skip to main content
Known Participant
December 29, 2010
Question

Acquire Suite

  • December 29, 2010
  • 4 replies
  • 1375 views

Hi,

I have written the function below to display Browse folder dialog to selecte a folder and using it in automationFilter plugin. It is working well and nice in window but when i 'am trying to do this on m ac snow leopad, the project compiles but when i am trying to debug it's giving EXC_BAD_ACCESS.

As when the AcquireSuite suite function gets execute sADMBasicSuite varible is not filled with the required value and remains 0x0(NULL). I am not geting why this   function is not getting executed properly. 

How could i trace this error ???


string SelectExportPath(void)
{
    string exportPath;
    SPPlatformFileSpecification outResult = {0,0,NULL};
    SPErr err;
    ADMBasicSuite8 *sADMBasicSuite = NULL;
    err = sSPBasic -> AcquireSuite(kADMBasicSuite, kADMBasicSuiteVersion8, (const void**)&sADMBasicSuite);
    if(sADMBasicSuite -> StandardGetDirectoryDialogW((ADMUnicode*)L"Select a folder...", NULL, &outResult) == true) {
        //exportPath.assign(outResult.path);    // commented for mac only as for now
    }
   
    return exportPath;
}

Thanks

This topic has been closed for replies.

4 replies

ilvar
Inspiring
December 31, 2010

Are you sure? By default, PS is running in x64 mode if the platform supports it - you've to _explicitly_ run it in 32 bit mode if so you want. In any case, don't bother going this path - as Chris said, ADM is dead for all practical purposes and you have to either write platform-specific GUI or use other third-party crossplatform toolkits (we use Qt, for instance). See here.

Known Participant
December 31, 2010

But mine is Mac OS CS5 x 86 .

still its not working?? any suggesstion

Known Participant
December 31, 2010

so what alternatives are there for the same bhaviour.

ilvar
Inspiring
December 29, 2010

Are we talking Mac OS CS5 x 64 here? Remember that there is no more ADM on this platform

Chris Cox
Legend
December 30, 2010

...and we've been saying not to use ADM for a while now.