Home > Default > [CS4] How to get path from SPPlatformFileSpecification on mac ?

[CS4] How to get path from SPPlatformFileSpecification on mac ?

November 30Hits:0
Advertisement
Hi all,
sADMBasic->StandardGetDirectoryDialog() return the directory selected by user in SPPlatformFileSpecification type variable.
  when I select the any directory i.e desktop SPPlatformFileSpecification  structure contains the following  values--
short vRefNum =  -100
long parID        =   371658
unsigned char name[64] = '\0'
is there any API or alternatives which give the path as char or string like -  "/Users/User1/Desktop" from these values?
thanks
D.A

Answers

Try this:
SPPlatformFileSpecification spec;
// do sADMBasic->StandardGetDirectoryDialog()
ai::FilePath path;
sAIFilePath->SetFromSPFileSpec(spec, path);
Then talk to path to get your location. Hopefully that does the job. I've never used StandardGetDirectoryDialog() though, so for all I know its broken.

Read other 3 answers

Tags:

Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.815 s.