Re: AddressBook searching broken in 10.2.4
Re: AddressBook searching broken in 10.2.4
- Subject: Re: AddressBook searching broken in 10.2.4
- From: Henri Lamiraux <email@hidden>
- Date: Tue, 18 Feb 2003 11:35:31 -0800
Looks like the problem is searching for not equal to an empty string.
For 10.2.4 the work around is to use nil instead of CFSTR("") but
CFSTR("") should still have been working...
On Tuesday, February 18, 2003, at 09:10 AM, Alec Carlson wrote:
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.
Henri Lamiraux
Engineering Manager
User Interface Tools Group
Apple
_______________________________________________
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.