On 10/8/02 1:46 AM, "Rob Leslie" rob@mars.org wrote:
On Tuesday, October 1, 2002, at 01:45 PM, Mark Malson wrote:
I wrote this function (in Objective-C) to update the contents of a tag for writing out later. Am I on the right track? Do I need to update both the UTF8 and the latin strings?
Be careful which types of frames you are willing to modify. Different frames have different field structures, so you probably want to restrict yourself to text and comment frames (Txxx and COMM).
Yeah, I didn't mention I'm only updating the Title, Album, Artist, Year, Track, and Genre. So I should be safe with this.
For the common case of text frames and ID3_FIELD_TYPE_STRINGLIST fields, your code is close but not perfect.
Thanks for the code - works great!