Re: warning with category
Re: warning with category
- Subject: Re: warning with category
- From: Jeffrey Walton <email@hidden>
- Date: Wed, 23 Jan 2013 08:15:14 -0500
On Wed, Jan 23, 2013 at 4:46 AM, Ariel Feinerman <email@hidden> wrote:
> Ok, but right now we wish to compile this as is
>
> then didn't the Objective C reference says that the category methods is
> loaded first?
You are asking folks to help you make drugs, and folks don't want to
be a part of it :)
Dave had good advice. Use your tools to identify potential issues and
clear them.
Linus Torvalds is worshiped by some, but I still remember this piece
of goodness from him:
"GCC is crap" [0]
Not surprisingly, he does not fully use the static analysis
capabilities afforded to him. As such, his namesake kernel makes
regular appearances on Bugtraq and Full Disclosure. His kernel bugs
are responsible for 8 or 9 of the 11 or so 'roots' on Android
Worst of all, the bugs were not clever, advanced hacks - they are
usually Comp Sci 101 mistakes that would cause you to get held back in
a Computer Science program. And many would have been found using the
static analysis capabilities of the tool chain.
Fix your program.
Jeff
[0] http://linux.derkeiler.com/Mailing-Lists/Kernel/2006-11/msg08325.html
> On Tue, Jan 22, 2013 at 2:30 PM, Dave Keck <email@hidden> wrote:
>>
>> > is the any compiler flags to turn off these warnings instance method
>> > in
>> > category from overrides method from class in
>>
>> What about heeding the warning and fixing your code so you're not
>> overriding a method with a category? The existence of this warning
>> typically indicates that the runtime behavior of your program is
>> indeterminate: just because the runtime chooses your category's method
>> implementation now, doesn't mean it won't choose the class' method
>> implementation in the future.
_______________________________________________
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