I'm designing an iOS app which will allow user to take text/photo/video notes and tag them with one or more text tags. As well as that I'm planning to add the ability to transfer created notes to PC or Mac via iTunes file sharing. So, the question is — what might be the best way to transfer tags from a device to a PC?
So, the ideal solution:
- would require user to copy just note files themselves (with tags somehow embedded inside)
- would work on both Windows and Mac OS X
- would allow user to search notes by their tags using standard filesystem search in corresponding OS (Spotlight on Mac OS X, Windows search for Files and Folders - the one with the dog)
I won't be surprised if all these requirements can't be met at once but all suggestions are welcome.
What I've tried so far: On Mac OS X I tried to implement tags as HFS+ extended attributes using getxattr()/setxattr() functions. Extended attributes are set and read just fine on a device itself, however it seems that iTunes file sharing doesn't transfer them (xattr -l shows nothing for the same files transferred via iTunes). Of course this approach won't work under Windows at all.