Select multiple folders?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trenatos
Posts: 189
Joined: Wed Jul 03, 2013 6:46 am
Location: Virginia, USA
Contact:

Select multiple folders?

Post by trenatos » Sun Dec 07, 2014 7:33 pm

Is there a built-in handler for letting the user select multiple folders?
I've only found the standard single-folder selector.
Marcus

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Select multiple folders?

Post by Klaus » Tue Dec 09, 2014 1:22 pm

trenatos wrote:Is there a built-in handler for letting the user select multiple folders?
No, there isn't, sorry!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Select multiple folders?

Post by FourthWorld » Tue Dec 09, 2014 4:04 pm

While there isn't a way to select multiple folders right now, there is a way to select multiple files, so my hunch is that there's an API the engine might be able to use to get what you're looking for.

Can you point me to examples of apps you've seen that do this? I can submit a feature request for this if I can show the team how it's been used by other devs.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

tellboy
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Wed Mar 06, 2013 1:31 pm

Re: Select multiple folders?

Post by tellboy » Thu Dec 25, 2014 9:03 am

FourthWorld wrote:Can you point me to examples of apps you've seen that do this?
Hi,

How about the NSOpenPanel panel class in Cocoa.

canChooseDirectories
setCanChooseDirectories:
allowsMultipleSelection

setAllowsMultipleSelection:
Sets whether the user can select multiple files (and directories) at one time for opening.

Accessing User Selection
URLs

Returns an array containing the absolute paths of the selected files and directories as URLs.


All the best

Terry

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Select multiple folders?

Post by FourthWorld » Thu Dec 25, 2014 5:39 pm

Thanks, Terry. Seems like useful into to include with a feature request:
http://quality.runrev.com/

Do you know the API calls for the other 90% who use Windows and Linux?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

tellboy
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 50
Joined: Wed Mar 06, 2013 1:31 pm

Re: Select multiple folders?

Post by tellboy » Fri Dec 26, 2014 9:01 am

FourthWorld wrote:Thanks, Terry. Seems like useful into to include with a feature request:
http://quality.runrev.com/

Do you know the API calls for the other 90% who use Windows and Linux?
I'm afraid not but I I'd be surprised if they did not exist.

The LC programmers would know them, I'm sure.

All the best

Terry

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Select multiple folders?

Post by FourthWorld » Fri Dec 26, 2014 4:26 pm

tellboy wrote:
FourthWorld wrote:Thanks, Terry. Seems like useful into to include with a feature request:
http://quality.runrev.com/

Do you know the API calls for the other 90% who use Windows and Linux?
I'm afraid not but I I'd be surprised if they did not exist.

The LC programmers would know them, I'm sure.
We can hope so, but with so many APIs it's sometimes helpful to have a pointer to the right place to look, as you provided with the OS X APIs.

Did you submit the feature request at the RQCC? Please note the report number so we can add notes to it as we come across useful details. I'll see if I can get some time to dig up the relevant GDK APIs for Linux.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”