Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Plugin and Companion App SDK
Viewing all articles
Browse latest Browse all 54282

Acquire Suite

$
0
0

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


Viewing all articles
Browse latest Browse all 54282

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>