Hi all,
Given:
-------
#import <Cocoa/Cocoa.h>
int main (void)
{
id array_or_set = nil;
NSUInteger x = [array_or_set count];
(void)x;
return 0;
}
-------
and compiling like so:
$ gcc -Wstrict-selector-match -framework Cocoa ~/Desktop/count_warning.m
I get:
warning: multiple methods named '-count' found
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:15:
warning: using '-(NSUInteger)count'
/System/Library/Frameworks/QuartzCore.framework/Headers/CIVector.h:59:
warning: also found '-(size_t)count'
How do others deal with this? I find -Wstrict-selector-match often
useful, but cases like these are problematic.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden
This email sent to email@hidden