Forums > Java

MaxPatcher getPath() method


G
March 30, 2007 | 10:45 am

hi all,

i’m trying to use the getPath() method but it returns an empty string.

i use this code :

this.getParentPatcher().getPath();

any idea?

G


March 30, 2007 | 4:59 pm

Is the patcher saved yet?
topher

On Mar 30, 2007, at 03:45 AM, guillaume wrote:

>
> hi all,
>
> i’m trying to use the getPath() method but it returns an empty string.
>
> i use this code :
>
> this.getParentPatcher().getPath();
>
> any idea?
>
> G



G
March 30, 2007 | 11:35 pm

yes of course.
i tried the getFile() method, which returns the full path (ending by file name) but that’s not what i want… i only want the path to the containing directory.

thanks for your help

G


March 31, 2007 | 12:37 am

I dont know if i will get to look at what’s going on more closely but
if getFile is working
and returning the the full path as a string why not…

getFile().substring(0,lastIndexOf((int)File.separatorChar));

t

On Mar 30, 2007, at 16:35 PM, guillaume wrote:

>
> yes of course.
> i tried the getFile() method, which returns the full path (ending
> by file name) but that’s not what i want… i only want the path to
> the containing directory.
>
> thanks for your help
>
> G



G
March 31, 2007 | 1:23 am

thanks,

that’s a tricky solution but why not…

G.


Viewing 5 posts - 1 through 5 (of 5 total)