realbasic-nug
[Top] [All Lists]

Re: more AddressBook annoyance

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 annoyance


Has anyone without knowledge of the Rb AddressBook classes been able to
edit 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 that
AddressBookData has an automatic Operator_Convert to string, which
automatically grabs the 0th value. For items that can't have more than one
value, 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.Value

But the AddressBook.HasUnsavedChanges property remains false.

I've noticed that Apple doesn't report unsaved changes sometimes. It depends
on 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>