Re: no method found returning 'id'
Re: no method found returning 'id'
- Subject: Re: no method found returning 'id'
- From: Torsten Curdt <email@hidden>
- Date: Fri, 8 Feb 2008 03:28:52 +0100
On 08.02.2008, at 02:47, Brian Christensen wrote:
On Feb 7, 2008, at 20:35, Torsten Curdt wrote:
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.)
My guess would be that you probably forgot to add this line to your
AppController.m file:
#import <AddressBook/AddressBook.h>
Thanks, Brian! Indeed I included "ABAddressBook.h" directly. Using
the import you suggested removes all warnings except
AppController.m:47: warning: initialization from distinct Objective-
C type
on
NSMutableArray *peopleFound = [AB
recordsMatchingSearchElement:wholeQuery];
which was because the correct type returned is NSArray not
NSMutableArray.
While it's great that the "no method found" warnings are gone it
would still be great to understand what was the problem with the
other import. Was this a compile time check not having enough
information (because some definitions are missing) and the runtime
figuring it out just fine?
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