Re: FileAttributeView for tags and colors?
On Feb 27, 2014, at 4:48 PM, Hendrik Schreiber h...@tagtraum.com wrote: On Feb 27, 2014, at 23:35, Michael Hall mik3h...@gmail.com wrote: On Feb 27, 2014, at 3:51 PM, Hendrik Schreiber h...@tagtraum.com wrote: Again fwiw, my trz package has support for a lot of different OS X file attributes, including old 'classic', file colors. I sort of liked the idea of color being a file attribute myself. Not your usual one. I am not 10.9 yet but when I get there if this API concerns this same sort of thing I would be happy to include it in trz anyhow. It is quite possible to add something like this along with a 'pass through' type file system. So you could possibly come up with it yourself without excessive effort. Thanks for the pointer, Michael. For my own needs, I will probably just roll my own (since the API is trivial), but for the future I wouldn't mind seeing APIs like this exposed through the regular JDK. And if nobody asks for it, it never gets done...so I ask. ;-) I might think, not necessarily. I tend to disagree. Something like this could be provided by the JDK itself. It could be provided for, say the platform (like my trz package), by someone interested in the API's or java on the platform. It could be provided by anyone with a particular need for some platform specific file attribute for their own code. Michael Hall trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter
Re: FileAttributeView for tags and colors?
On Feb 27, 2014, at 3:51 PM, Hendrik Schreiber h...@tagtraum.com wrote: Hey there, I was wondering, wouldn't the tags/colors API in OS X 10.9 be a really nice candidate for a java.nio.file.attribute.FileAttributeView? Is an appropriate implementation planned? I wasn't able to find an RFE on https://bugs.openjdk.java.net Again fwiw, my trz package has support for a lot of different OS X file attributes, including old 'classic', file colors. I sort of liked the idea of color being a file attribute myself. Not your usual one. I am not 10.9 yet but when I get there if this API concerns this same sort of thing I would be happy to include it in trz anyhow. It is quite possible to add something like this along with a 'pass through' type file system. So you could possibly come up with it yourself without excessive effort. Michael Hall trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter
Re: FileAttributeView for tags and colors?
On Feb 27, 2014, at 23:35, Michael Hall mik3h...@gmail.com wrote: On Feb 27, 2014, at 3:51 PM, Hendrik Schreiber h...@tagtraum.com wrote: Again fwiw, my trz package has support for a lot of different OS X file attributes, including old 'classic', file colors. I sort of liked the idea of color being a file attribute myself. Not your usual one. I am not 10.9 yet but when I get there if this API concerns this same sort of thing I would be happy to include it in trz anyhow. It is quite possible to add something like this along with a 'pass through' type file system. So you could possibly come up with it yourself without excessive effort. Thanks for the pointer, Michael. For my own needs, I will probably just roll my own (since the API is trivial), but for the future I wouldn't mind seeing APIs like this exposed through the regular JDK. And if nobody asks for it, it never gets done...so I ask. ;-) Cheers, -hendrik