• 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
AddressBook searching broken in 10.2.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AddressBook searching broken in 10.2.4


  • Subject: AddressBook searching broken in 10.2.4
  • From: Alec Carlson <email@hidden>
  • Date: Tue, 18 Feb 2003 11:10:34 -0600

It appears that searching the AddressBook is broken in 10.2.4.

The following code worked perfectly until I upgraded to 10.2.4:

// Create the people search list and execute it - want everyone with a
Fax phone number
searchList[0] = ABPersonCreateSearchElement( kABPhoneProperty,
kABPhoneWorkFAXLabel, nil, CFSTR(""), kABNotEqual );
searchList[1] = ABPersonCreateSearchElement( kABPhoneProperty,
kABPhoneHomeFAXLabel, nil, CFSTR(""), kABNotEqual );
searchWorkAndHomeFax = ABSearchElementCreateWithConjunction( kABSearchOr,
CFArrayCreate(kCFAllocatorDefault, (const void **)searchList, 2, NULL) );
peopleFound = ABCopyArrayOfMatchingRecords( addrBook, searchWorkAndHomeFax
);

The search now returns everyone in my addressbook, not just people with Fax
numbers. Here are 2 examples of ABPerson records returned in the search
under 10.2.4:

This person has no phone numbers...
(gdb) po 0x1d4c8c0
{
ABTableName = ABPerson;
Creation = 2002-12-19 17:14:20 US/Central;
Email = {
identifiers = ("9AA36314-13A7-11D7-B9E2-003065D4F382");
labels = ("_$!<Home>!$_");
primaryIdentifier = "9AA36314-13A7-11D7-B9E2-003065D4F382";
values = ("email@hidden");
};
First = Tom;
Last = Prikryl;
Modification = 2002-12-19 17:14:20 US/Central;
Note = TomPrikryl;
UID = "9AA2C25A-13A7-11D7-B9E2-003065D4F382:ABPerson";
}

This person has a work fax number.
(gdb) po 0x1d4bfc0
{
ABTableName = ABPerson;
Creation = 2002-12-19 17:14:20 US/Central;
First = Bob;
Last = Scheussler;
Modification = 2002-12-19 17:14:20 US/Central;
Note = "Brian O'Shea";
Phone = {
identifiers = ("9AAA8938-13A7-11D7-B9E2-003065D4F382");
labels = ("_$!<WorkFAX>!$_");
primaryIdentifier = "9AAA8938-13A7-11D7-B9E2-003065D4F382";
values = ("809 766 2242");
};
UID = "9AA9BD86-13A7-11D7-B9E2-003065D4F382:ABPerson";
}

Comments ???

Alec Carlson
-----------------------------------------------------------------------
Time is Short and the Water Rises
-----------------------------------------------------------------------
_______________________________________________
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.

  • Follow-Ups:
    • Re: AddressBook searching broken in 10.2.4
      • From: Henri Lamiraux <email@hidden>
  • Prev by Date: Re: loading nib from jnilib - now java from cocoa!
  • Next by Date: Re: Installing elements from application bundle
  • Previous by thread: [SOLUTION] Displaying a sheet inside windowControllerDidLoadNib = no go ??
  • Next by thread: Re: AddressBook searching broken in 10.2.4
  • Index(es):
    • Date
    • Thread