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: Ken Ferry <email@hidden>
- Date: Sun, 15 Feb 2004 22:01:01 -0500
Hi Alex,
This should do it:
ABPerson *person; // assume this is set
int showAsFlags;
showAsFlags = [[person valueForProperty:kABPersonFlags]
intValue] & kABShowAsMask;
if (showAsFlags == kABShowAsCompany)
{
// ..
}
else if (showAsFlags == kABShowAsPerson)
{
// ..
}
-Ken
On Feb 14, 2004, at 2:38 AM, 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.
Thanks
Alex
_______________________________________________
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.
_______________________________________________
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.