• 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 10:39:18 +0100


On 08.02.2008, at 05:05, Jens Alfke wrote:
On 7 Feb '08, at 6:28 PM, Torsten Curdt wrote:

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?

Yes: because ABPerson.h wasn't parsed, the compiler didn't know the methods of the ABPerson class, so it warned you that the messages sent to that class might not be valid. (But of course they are valid, which is why it worked at runtime.)

Thanks for clarifying, guys!

It can be tempting to ignore such warnings; but you did the right thing by trying to get rid of them. They often signal real mistakes, like mistyping a method name or leaving behind a call to a method whose definition you just deleted. In my own projects I always turn on the "Treat warnings as errors" flag to make sure I can't get away without fixing things like this.

Oh, there is such a flag? Good to know!

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


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

  • Prev by Date: Re: CoreData Predicate Question - Retriving child objects
  • Next by Date: Using iChat Theater
  • Previous by thread: Re: no method found returning 'id'
  • Next by thread: Re: libPng.dylib: "file is not of required architecture"
  • Index(es):
    • Date
    • Thread