[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Folder Selection Dialog?



On Thu, 08 Jun 2000 22:49:36 -0500, Andrew Robinson wrote:

>    I need to select a folder in an application and would love to use a
>dialog to make it slick. I did not see how in MPAE and couldn't figure
>out how to get StandardGetFile or CustomGetFile to return a folder name.
>Can I do this? Could some kind soul show me how?

You mean using StandardFile.pm? Er... it doesn't really look like you
can.

But you *can* do it, if you fall back to the older StandardFile.pl.
there's no POD in the file, so just open it in an editor) (or MacPerl)
to see the docs.

You want GetFolder.

	require 'StandardFile.pl';
	$folder = StandardFile::GetFolder("pick a folder:");
	print "Folder: $folder\n" if $folder;

I don't think the "default" parameter ever worked.

-- 
	Bart.

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org