[Mono-bugs] [Bug 647184] New: ABMultiValue<string> property labels are incorrect, they have elven moneyfaces.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 15 21:32:22 EDT 2010



           Summary: ABMultiValue<string> property labels are incorrect,
                    they have elven moneyfaces.
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: 64bit
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bryancostanich at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: No

given the a record with a mobile phone number and a work number, if you run the
following code:
//---- instantiate a reference to the address book
using(ABAddressBook addressBook = new ABAddressBook())
    foreach(ABRecord item in addressBook)
        Console.WriteLine(item.Type.ToString() + " " + item.Id);
        if(item.Type == ABRecordType.Person)
            ABPerson person = item as ABPerson;
            Console.WriteLine(person.FirstName + " " + person.LastName);

            //---- get the phone numbers
            ABMultiValue<string> phones = person.GetPhones();
            foreach(var val in phones)
                Console.Write(val.Label + ": " + val.Value);

you'll get an output similar to the following:

Person 1
John Doe
_$!<Mobile>!$_: (555) 123-4567_$!<Work>!$_: (555) 765-4321

the problem here is that the label for those phone numbers should be "Mobile"
and "Work," respectively.

instead, some magic is happening that is wrapping them in moneyface emoticons
with elven ears. 

that's a problem, as i have a strong aversion to elven moneyfaces.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list