Re: ABPerson is a Person or a Company
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.