Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dnd of filenames with locale specific characters



Pierre Sandboge wrote:

>When dropped in Finder, however, an error results on the console:
>java[1850] Couldn't convert path "/Users/sandboge/Pictures/pm/temp/a?
>a?o?.jpg" to an FSRef to put on the pasteboard.
>That's it. No stacktrace, no exception.
>
>I have no idea if there is an acceptable workaround. FSRef sounds
>like Cocoa, or at least not Java.

While investigating something completely different today, I came across
this Apple Tech Note, which has a decent introduction to how Unicode is
used and realized in filenames for FSRefs.  The whole TN is useful for its
FSRef and FSSpec info, but the section entitled "Unicode Notes" is
especially useful for pathnames:
  <http://developer.apple.com/technotes/tn2002/tn2078.html#UnicodeNotes>

This item may also be apropos:
  <http://developer.apple.com/technotes/tn2002/tn2078.html#ReplaceAll>
  "The QuickTime and Drag Manager APIs still require FSSpecs, ..."

That was written in 2003, so may not be true any longer.  But if it is,
it's a clue about how or why names can become mangled in the Java DnD API.
Just a thought.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.