Re: Missing Obj-C Category Method Implementations: No linker errors?!?!
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