Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...

2010-04-19 Thread James Bucanek
Kevin Wojniak wrote (Sunday, April 18, 2010 1:29 AM -0700): If that doesn't work, you could try looping through the mounted volumes and check each one for a matching URL with FSCopyURLForVolume(). I might try that too, just to see if the URL returned by FSCopyUR

Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...

2010-04-19 Thread James Bucanek
Ken Thomases wrote (Saturday, April 17, 2010 5:29 PM -0500): On Apr 17, 2010, at 6:46 PM, James Bucanek wrote: For backwards compatibility, the notification still includes an NSDevicePath value, but that value is wrong for AFP volumes. For example, in 10.5 mount

Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...

2010-04-19 Thread James Bucanek
Kyle Sluder wrote (Saturday, April 17, 2010 4:55 PM -0700): > On Sat, Apr 17, 2010 at 4:46 PM, James Bucanek > wrote: > > The path "/Dinah" is (obviously) invalid. > > Actually, it's annoyingly not invalid. Finder > Go To URL > "/Dinah" > will actually work. It r

Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...

2010-04-18 Thread Kevin Wojniak
On Apr 17, 2010, at 5:29 PM, Ken Thomases wrote: > On Apr 17, 2010, at 6:46 PM, James Bucanek wrote: > >> How do I get the mount point path of a freshly mounted volume in Snow >> Leopard? >> >> In Leopard (10.5), the NSWorkspaceDidMountNotification included an >> NSDevicePath value. It contai

Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...

2010-04-17 Thread Ken Thomases
On Apr 17, 2010, at 6:46 PM, James Bucanek wrote: > How do I get the mount point path of a freshly mounted volume in Snow Leopard? > > In Leopard (10.5), the NSWorkspaceDidMountNotification included an > NSDevicePath value. It contained the path to the mount point of the freshly > mounted volum

Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...

2010-04-17 Thread Kyle Sluder
On Sat, Apr 17, 2010 at 4:46 PM, James Bucanek wrote: > The path "/Dinah" is (obviously) invalid. Actually, it's annoyingly not invalid. Finder > Go To URL > "/Dinah" will actually work. It really stinks if you mount a volume named something like "Users"... >:( Please add to the pile of bugs on

Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...

2010-04-17 Thread James Bucanek
How do I get the mount point path of a freshly mounted volume in Snow Leopard? In Leopard (10.5), the NSWorkspaceDidMountNotification included an NSDevicePath value. It contained the path to the mount point of the freshly mounted volume. In Snow Leopard (10.6), this property has been depreca