• 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: Missing Obj-C Category Method Implementations: No linker errors?!?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing Obj-C Category Method Implementations: No linker errors?!?!


  • Subject: Re: Missing Obj-C Category Method Implementations: No linker errors?!?!
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 14 Mar 2009 06:39:43 -0700

Yes, its's true that the compiler will not even generate a warning.

So, I now understand that if you #import an @interface and compile its @implementation, and a declared method is not implemented, then you get a compiler warning. But if you #import and @interface do not compile the corresponding @implementation, you don't get any indication until you run it. Works the same with a regular Obj-C class as well as a Obj-C category.

Wow, I've been using Objective-C for several years and never realized this, although I have used this "feature" as the recommended idiom to get warning-free builds of Core Data managed object classes with custom accessors.

I'll have to check my code manually.

Thanks, Jonas and Phillip.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Missing Obj-C Category Method Implementations: No linker errors?!?! (From: Jerry Krinock <email@hidden>)
 >Re: Missing Obj-C Category Method Implementations: No linker errors?!?! (From: Jonas Maebe <email@hidden>)
 >Re: Missing Obj-C Category Method Implementations: No linker errors?!?! (From: Phillip Hutchings <email@hidden>)
 >Re: Missing Obj-C Category Method Implementations: No linker errors?!?! (From: Jonas Maebe <email@hidden>)

  • Prev by Date: Debugging C exercises that use inputs (e.g. scanf)
  • Next by Date: Re:[SOLVED] Debugging C exercises that use inputs (e.g. scanf)
  • Previous by thread: Re: Missing Obj-C Category Method Implementations: No linker errors?!?!
  • Next by thread: Re:[SOLVED] Debugging C exercises that use inputs (e.g. scanf)
  • Index(es):
    • Date
    • Thread