MaxPatcher getPath() method


G
Mar 30, 2007 at 10:45am

MaxPatcher getPath() method

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

#31091
Mar 30, 2007 at 4:59pm

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

#100508

G
Mar 30, 2007 at 11:35pm

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

#100509
Mar 31, 2007 at 12:37am

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

#100510

G
Mar 31, 2007 at 1:23am

thanks,

that’s a tricky solution but why not…

G.

#100511

You must be logged in to reply to this topic.