pattrstorage to clipboard?


    Jun 22 2008 | 2:19 am
    I'm building a Max5-based standalone for both Mac and Windows. In addition to allowing my users to be able to save the contents of a pattrstorage to file, I'd like to be able to have them copy its contents to the clipboard. Ideas on how I might go about this?
    Dan -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com

    • Jun 22 2008 | 6:07 pm
      You could dump the contents to a coll? open the coll window and you can copy, edit and paste. pelado
      On Sun, Jun 22, 2008 at 4:19 AM, Dan Nigrin wrote:
      > I'm building a Max5-based standalone for both Mac and Windows. In addition > to allowing my users to be able to save the contents of a pattrstorage to > file, I'd like to be able to have them copy its contents to the clipboard. > Ideas on how I might go about this? > > Dan > -- > Dan Nigrin > Defective Records > 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major > Malfunction > http://www.defectiverecords.com > http://www.jackosx.com > >
    • Jun 22 2008 | 10:47 pm
      bt
      On Jun 21, 2008, at 7:19 PM, Dan Nigrin wrote:
      > I'm building a Max5-based standalone for both Mac and Windows. In > addition to allowing my users to be able to save the contents of a > pattrstorage to file, I'd like to be able to have them copy its > contents to the clipboard. Ideas on how I might go about this?
      barry threw Media Art and Technology
      San Francisco, CA Work: 857-544-3967 Email: bthrew (at) gmail (dot) com Web: www.barrythrew.com
    • Jun 23 2008 | 11:37 am
      Thanks Barry - I definitely thought about using Java (or Javascript too), but then I ran into a stumbling block; I should have been more explicit in my original posting, but I want to store *the XML* format of the data in the pattrstorage to the clipboard -- basically what I'm trying to do is to pass the same contents that would be stored in a "write" operation to a file, but instead to redirect the output to the clipboard rather than to a file.
      Using a "dump" operation on the pattrstorage doesn't get the data in the XML format - and I do *not* look forward to converting it back to XML.
      I think I might need to appeal to Jeremy B for a feature request... ;-) Jeremy, are you there??
      Dan
      At 3:47 PM -0700 6/22/08, barry threw wrote: >http://java.sun.com/javase/6/docs/api/java/awt/datatransfer/Clipboard.html#Clipboard(java.lang.String) > >bt > >On Jun 21, 2008, at 7:19 PM, Dan Nigrin wrote: > >>I'm building a Max5-based standalone for both Mac and Windows. In >>addition to allowing my users to be able to save the contents of a >>pattrstorage to file, I'd like to be able to have them copy its >>contents to the clipboard. Ideas on how I might go about this? > > >barry threw >Media Art and Technology
      -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com
    • Jun 23 2008 | 11:42 am
      I am, but trying my very best to ignore this thread. :)
      This is not on my to-do list at the moment, and probably will never be a feature (unless you can demonstrate to me how all of the other data management objects in Max -- table, coll, qlist, etc. -- provide copy to clipboard functionality).
      Why don't you write the file and then read it back with Java or JS or something and get the data that way?
      Jeremy
    • Jun 23 2008 | 11:52 am
      At 1:42 PM +0200 6/23/08, Jeremy Bernstein wrote: >I am, but trying my very best to ignore this thread. :) > >This is not on my to-do list at the moment, and probably will never >be a feature (unless you can demonstrate to me how all of the other >data management objects in Max -- table, coll, qlist, etc. -- >provide copy to clipboard functionality).
      They don't - but pattrstorage is way better than all those other lowly objects. ;-)
      >Why don't you write the file and then read it back with Java or JS >or something and get the data that way?
      Hey, now that's a nice idea to try, hadn't thought of that! OK, for now at least, you can remove the request from your to-do list! ;-)
      Thanks, Dan -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com