Le 5 déc. 2012 à 23:37, Christian Schmitz a écrit: > On Mac?
Yes, only Mac here. > Make an alias! Well, it doesn't suit my needs (as I see that). I have a class: CVolume. It contains 2 properties (TargetVolume As FolderItem, Enabled As Boolean). I the whole app, I have an array of CVolume objects. When the app closes, I write to the preferences, using a BinaryStream (I don't care how Apple wants to save prefs using CFThings), and I restore that when the app opens. So, I loop thru all my CVolume objects and write a boolean (enabled?) and an identifier for the volume (until now, this was the name). Of course, this isn't sufficient since several volumes can have the same name. In order to make aliases, I'd have to either save my prefs in a folder (each alias would have a corresponding file for the enabled flag) or copy the “alis” resource from a temporary alias into my main preferences file, which would make a lot of read/write just to get an unique ID. This assumes an alias file can distinguish between 2 mounted volumes with the same name, even with none connected from the network (no AFP address, etc.). Would it? _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
