• 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
Re: AddressBook & phone multivalue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AddressBook & phone multivalue


  • Subject: Re: AddressBook & phone multivalue
  • From: Henri Lamiraux <email@hidden>
  • Date: Sat, 9 Nov 2002 07:36:49 -0800

Value returned by -valueForProperty are always non-mutable so at least it should be

ABMultiValue *value = [person valueForProperty:kABPhoneProperty];

-valueForProperty would return nil if:
- person is nil
- this person doesn't any phone numbers.

On Friday, November 8, 2002, at 01:46 PM, T G wrote:

Hi all,

I'm having trouble with phone numbers & the AddressBook. Specifically, when I try to retreive the phone numbers for a given person, I get no data, regardless of the fact that the contact in question definitely has at least one phone number.

Here's how I'm doing it... (where person is of type ABPerson *)

ABMutableMultiValue *phone;
//...
phone = [person valueForProperty:kABPhoneProperty];
//...

phone is always nil. :(

Has anyone else encountered this? Or is it just something really basic that I've managed to overlook?

Thanks,

Terence


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >AddressBook & phone multivalue (From: "T G" <email@hidden>)

  • Prev by Date: Re: "weak link" framework refs for 10.1 compatibility?
  • Next by Date: Re: "weak link" framework refs for 10.1 compatibility?
  • Previous by thread: AddressBook & phone multivalue
  • Next by thread: Re: AddressBook & phone multivalue
  • Index(es):
    • Date
    • Thread