I'm trying to programmatically discover and then mount network volumes shared using OS X's file sharing from a Cocoa app. I'm using NSNetServiceBrowser to discover which servers are advertising file sharing - easy enough.
My question is about the next step - how do you discover what shares are available for a given machine? ie. given that AFP URLs look something like this:
afp://SomeMac._afpovertcp._tcp.local/SomeVolume
afp://SomeMac._afpovertcp._tcp.local/OtherVolume
how do I discover the share names that make up that last url component? Surely I don't have to make low-level AFP calls for this!