Comparing apples & oranges (well, Strings & mount points)
Comparing apples & oranges (well, Strings & mount points)
- Subject: Comparing apples & oranges (well, Strings & mount points)
- From: Brian Ganninger <email@hidden>
- Date: Sat, 15 Feb 2003 01:31:28 -0600
I'm new to the list so please be gentle. I've searched the archives and the
documentation (and as much source code as possible) but I can't seem to find
a clean way to determine what I need.
Here's the situation:
I'm trying to get a list of mounted volumes (using NSWorkspace), and to then
take the returned array and use those individually ([array objectAtIndex:x])
to compare to a string to see if they are equal (in essence, verifying a
location is a mounted volume and simply not a junk string or path). Since
the returned array contains mount points instead of strings, I have no idea
how to re-format the array's contents to allow for comparison.
The ancillary question is, once compared, how can I take either string and
then convert it into a true path for then getting (and setting) the volume's
icon.
Thanks to any all who can provide insight and help, I've nearly broken a
hole in my wall banging my head against it.
- Brian Ganninger
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.