• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ABPerson and Note property issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Tracking Multiple Touches For Appropriate Label
  • Next by Date: Issue with Input method using IMK
  • Previous by thread: Re: NSScroller position
  • Next by thread: Issue with Input method using IMK
  • Index(es):
    • Date
    • Thread