Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Need for a CPOpenPanel

#121

It would be useful to have an implementation of NSOpenPanel in Cappuccino. I can see two scenarios where they would be useful.

  • One is to let the user select a file on their local file system. The app could upload the file to a server and then make it available to the user.

  • Or the panel could be used to select a file on a remote server. If the user has a remote library of files, like 280 Slides does, this would be a way to select one of these files for opening.

Reported by Steve Roy · October 25th, 2008 @ 02:59 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Ross Boucher
    Ross Boucher
    • State changed from new to open

    This is a challenging task. The first goal is essentially impossible, at least, sort of.

    Web apps can't talk to the native file system, and that isn't likely to change in the near future. The only exception is using the "File Upload" mechanism (input type="file").

    We do need to build support for this into Cappuccino (we have it in 280 Slides, and have the sample code in our gist pastebin). However, beyond that, there's essentially nothing we can do with respect to local file system files.

    As for a generic open panel for remote server files, this is a worthwhile goal, but it isn't obvious how it would work. The interaction is very server component specific. How do I get a list of available files? Do I support folders? Are there previews for these files available? Metadata?

    It may be that we'll make a set of default assumptions, built a somewhat generic looking open panel, and then see where it takes us, but right now I think the project is better served by focusing on slightly more generic tasks (specifically ones that don't require us to worry about server interaction).

    All that being said, if someone wants to volunteer to work on this, then that's great. I'm happy to think things through with someone.

    We can also consider releasing the 280 Slides open panel as sample code. It would not be directly reusable (its fairly specifically oriented towards slides), but it would be a reasonable starting point for anyone.

    October 25th, 2008 @ 04:07 PM

  2. Thrinz
    Thrinz

    The Import Button on the 280slides.com does not seem to work for Opera.

    November 29th, 2008 @ 06:48 AM

  3. Ross Boucher
    Ross Boucher

    It also doesn't work in some versions of IE, but I haven't been able to determine which versions....

    It's not part of Cappuccino though, and for several reasons.

    December 5th, 2008 @ 06:42 PM

  4. admin (at 280north)

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.