• 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: no method found returning 'id'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: no method found returning 'id'
      • From: Jens Alfke <email@hidden>
References: 
 >no method found returning 'id' (From: Torsten Curdt <email@hidden>)
 >Re: no method found returning 'id' (From: Brian Christensen <email@hidden>)

  • Prev by Date: Re: no method found returning 'id'
  • Next by Date: Re: Bug in CF/NSString's no-copy constructors
  • Previous by thread: Re: no method found returning 'id'
  • Next by thread: Re: no method found returning 'id'
  • Index(es):
    • Date
    • Thread