no method found returning 'id'
no method found returning 'id'
- Subject: no method found returning 'id'
- From: Torsten Curdt <email@hidden>
- Date: Fri, 8 Feb 2008 02:35:54 +0100
In the AppController I am querying the addressbook like this
- (void) awakeFromNib
{
NSString *search = @"something";
ABAddressBook *AB = [ABAddressBook sharedAddressBook];
ABSearchElement *surnameIsFromField = [ABPerson
searchElementForProperty:kABLastNameProperty
label:nil
key:nil
value:search
c
omparison:kABPrefixMatchCaseInsensitive];
ABSearchElement *forenameIsFromField = [ABPerson
searchElementForProperty:kABFirstNameProperty
label:nil
key:nil
value:search
comparison:kABPrefixMatchCaseInsensitive];
ABSearchElement *companyIsFromField = [ABPerson
searchElementForProperty:kABOrganizationProperty
label:nil
key:nil
value:search
c
omparison:kABPrefixMatchCaseInsensitive];
ABSearchElement *wholeQuery = [ABSearchElement
searchElementForConjunction:kABSearchOr
children:[NSArray
arrayWithObjects:
surnameIsFromField, forenameIsFromField, companyIsFromField, nil]];
NSMutableArray *peopleFound = [AB
recordsMatchingSearchElement:wholeQuery];
While it seems to work just fine I am getting the following warnings
that I am not quite understanding yet.
AppController.m: In function '-[AppController awakeFromNib]':
AppController.m:28: warning: no
'+searchElementForProperty:label:key:value:comparison:' method found
AppController.m:28: warning: (Messages without a matching method
signature
AppController.m:28: warning: will be assumed to return 'id' and
accept
AppController.m:28: warning: '...' as arguments.)
AppController.m:34: warning: no
'+searchElementForProperty:label:key:value:comparison:' method found
AppController.m:40: warning: no
'+searchElementForProperty:label:key:value:comparison:' method found
AppController.m:45: warning: no
'+searchElementForConjunction:children:' method found
AppController.m:47: warning: initialization from distinct
Objective-C type
AppController.m:28: warning: no
'+searchElementForProperty:label:key:value:comparison:' method found
AppController.m:28: warning: (Messages without a matching method
signature
AppController.m:34: warning: no
'+searchElementForProperty:label:key:value:comparison:' method found
AppController.m:40: warning: no
'+searchElementForProperty:label:key:value:comparison:' method found
AppController.m:45: warning: no
'+searchElementForConjunction:children:' method found
AppController.m:47: warning: initialization from distinct
Objective-C type
Could someone help me out and explain?
cheers
--
Torsten
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden