#121 ✓resolved
Steve Roy

Need for a CPOpenPanel

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

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.

Comments and changes to this ticket

  • Ross Boucher

    Ross Boucher October 25th, 2008 @ 04:07 PM

    • 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.

  • Thrinz

    Thrinz November 29th, 2008 @ 06:48 AM

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

  • Ross Boucher

    Ross Boucher December 5th, 2008 @ 06:42 PM

    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.

  • admin (at 280north)

    admin (at 280north) December 4th, 2009 @ 10:46 AM

    • State changed from “open” to “resolved”
    • Tag set to @new-features

    (from [a30250f758d0ba4a6b448d0c58ec533965d9b452]) Merge branch 'menus' into jake

    Closes #73.
    Closes #75.
    Closes #121.
    Closes #130.
    Closes #197.

    Reviewed by me.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Referenced by