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