• 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 Search for Companies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >AddressBook Search for Companies (From: "Dr. Jan-Hendrik Dörner" <email@hidden>)

  • Prev by Date: Re: Open application when Options button is clicked
  • Next by Date: Re: Extracting and Saving a 'SND ' Resource;;;
  • Previous by thread: AddressBook Search for Companies
  • Next by thread: NSTextfield not updating correctly with bindings enabled.
  • Index(es):
    • Date
    • Thread