ABPerson and Note property issue
ABPerson and Note property issue
- Subject: ABPerson and Note property issue
- From: Greg Hoover <email@hidden>
- Date: Mon, 7 Dec 2009 19:55:45 -0800
When setting the value for the note property in an ABPerson record, the new value isn't available until relaunching the application.
Scenario:
- read the note value for a contact and I get "foo"
- set the value to "bar"
- save the address book
- read the note value for the contact but get an empty string
I'm printing the description of the record after writing and before reading. After writing the new value, the description does show that the value for the note attribute has been set correctly. However, when reading the note property the next time the record shows no note at all.
Interestingly I get the correct (new) value if I store the note as RTF rather than plain text. I use RTFDataFromRange and initWithData:encoding: (NSASCIIStringEncoding) to convert the contents of an NSTextView to an ASCII RTF string.
Can anyone shed some light on this?
Thanks,
Greg_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden