• 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: ABPerson is a Person or a Company
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ABPerson is a Person or a Company


  • Subject: Re: ABPerson is a Person or a Company
  • From: Vince DeMarco <email@hidden>
  • Date: Mon, 16 Feb 2004 09:18:22 -0800

On Feb 13, 2004, at 11:38 PM, Alexander F. Hartner wrote:

Hi all,

This must come across really silly but I am looking for an example on
how to check if an ABPerson is a company or a person. I know that I
have to use the kABPersonFlags, kABShowAsPerson and kABShowAsCompany
constants, but how ? Anyone got any examples.


int value;
BOOL isCompany;

value = [[self valueForProperty:kABPersonFlags] intValue];
isCompany = (value & kABShowAsMask) == kABShowAsCompany;


vince
_______________________________________________
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: 
 >ABPerson is a Person or a Company (From: "Alexander F. Hartner" <email@hidden>)

  • Prev by Date: Re: realize Audio CD Player
  • Next by Date: XetSystemUIMode
  • Previous by thread: Re: ABPerson is a Person or a Company
  • Next by thread: Framework causing a problem
  • Index(es):
    • Date
    • Thread