Re: AddressBook Search for Companies
Re: AddressBook Search for Companies
- Subject: Re: AddressBook Search for Companies
- From: Simon Robins <email@hidden>
- Date: Wed, 2 Feb 2005 23:01:06 +0000
On 1 Feb 2005, at 9:35 pm, Dr. Jan-Hendrik Dörner wrote:
Hi,
since MacOS 10.3 you should be able to search the AddressBook for ABPerson shown as a company useing the kABBitsInBitFieldMatch comparison.
Can anybody please show me, how to create a ABSearchElement which successfully searches for cards shown as companies? My guess seems not to work.
ABSearchElement *seGroup = [ABPerson searchElementForProperty:kABPersonFlags label:nil key:nil value:kABShowAsCompany comparison:kABBitsInBitFieldMatch];
Thanks a lot for your help
Jan-Hendrik
You can't pass kABShowAsCompany as a value because it is an int and 'value:' is an id.
ABSearchElement *element = [ABPerson searchElementForProperty:kABPersonFlags
label:nil
key:nil
value:[NSNumber numberWithInt:kABShowAsCompany]
comparison:kABBitsInBitFieldMatch];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden