| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: more AddressBook annoyance |
| From: | Charles Yeomans <yeomans at desuetude dot com> |
| Date: | Tue, 31 Aug 2004 18:55:06 -0400 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <DDE66D72-F9FB-11D8-8121-000A957CB4CC at desuetude dot com> <015c01c48e0c$9225f790$6500a8c0 at wired> |
On Aug 29, 2004, at 5:10 PM, Jonathan Johnson wrote: ----- Original Message ----- From: "Charles Yeomans" <yeomans at desuetude dot com> To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com> Sent: Sunday, August 29, 2004 3:41 PM Subject: more AddressBook annoyanceHas anyone without knowledge of the Rb AddressBook classes been able toedit an AddressBookContact? It seems like code like the following should work. theContact.LastName.Value(0) = changedContact.LastName.Value(0)Hmm.. That does seem like it should work. However, I should point out thatAddressBookData has an automatic Operator_Convert to string, whichautomatically grabs the 0th value. For items that can't have more than onevalue, it's perfectly valid to use. I can imagine why the above doesn't work, but I think it's a bug. For now, you can use this: theContact.LastName = changedContact.LastName.ValueBut the AddressBook.HasUnsavedChanges property remains false.I've noticed that Apple doesn't report unsaved changes sometimes. It dependson the operation, in my experience. The operation above appears to be one such. Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://www.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Opinions on Databases, Kimball Larsen |
|---|---|
| Next by Date: | Re: Ask O'Reilly for a new edition to REALbasic: The DefinitiveGuide, Steve Albin |
| Previous by Thread: | Re: more AddressBook annoyance, Jonathan Johnson |
| Next by Thread: | Project Manager, Keith Hutchison |
| Indexes: | [Date] [Thread] [Top] [All Lists] |