On 06.12.2012, at 13:46, Marnaud <[email protected]> wrote:

> There's a remaining limitation in my app. It listens to events to know when a 
> volume is mounted. So, when such event happens, I have to compare the mounted 
> volume against my array of saved volumes. If I resolve the saved strings to 
> their volumes, the original problem of comparing my two folderitems (=the 
> resolved volume and the one being mounted) rises again. I'm forced to compare 
> the GetSaveInfo of the volume against my array (which I keep as strings of 
> the GetSaveInfo read from prefs) using IndexOf. This assumes a GetSaveInfo 
> string won't change between times (e.g. if the volumes aren't mounted in the 
> same order, their MacVRefNum would change; if this is stored inside the 
> GetSaveInfo, they become non-equal and I'll fail to see a matching volume).

I'd use MacAliasMBS directly, so you can use AliasInfoMBS class which can tell 
you volume name.

Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to