discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting rid of unwanted warnings


From: David Ayers
Subject: Re: Getting rid of unwanted warnings
Date: Thu, 26 Jan 2006 21:00:00 +0100
User-agent: Mozilla Thunderbird 1.0.2 (X11/20051002)

Andreas Höschler schrieb:
> we are using gcc 3.4.4. Any idea how we could get rid of these "multiple
> methods named" warnings?
> 
> DBCMemberController.m:167: warning: multiple methods named
> `-objectForKey:' found
> /opt/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72:
> warning: using `-(id)objectForKey:(id)aKey'
> /opt/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245:
> warning: also found `-(id)objectForKey:(NSString *)defaultName'
> DBCMemberController.m:173: warning: multiple methods named
> `-objectForKey:' found
> /opt/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72:
> warning: using `-(id)objectForKey:(id)aKey'
> /opt/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245:
> warning: also found `-(id)objectForKey:(NSString *)defaultName'
> DBCMemberController.m: In function `-[DBCMemberController
> tableView:objectValueForTableColumn:row:]':
> DBCMemberController.m:198: warning: multiple methods named
> `-objectForKey:' found
> /opt/GNUstep/System/Library/Headers/Foundation/NSDictionary.h:72:
> warning: using `-(id)objectForKey:(id)aKey'
> /opt/GNUstep/System/Library/Headers/Foundation/NSUserDefaults.h:245:
> warning: also found `-(id)objectForKey:(NSString *)defaultName'
> ...

Hi,

Actually I'm wondering what Apple did with this issue.  Note that
according to their documentation the signatures of

NSDictionary's objectForKey:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSDictionary_index.html

NSUserDefaults' objectForKey:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSUserDefaults_index.html

don't match either.  And this new warning was also brought to FSF's gcc
by one of Apple's "objc improvements" merges.  Does their current
compiler also issue these warnings?

My personal preference would be to adapt NSUserDefault's signature (I
think we have yet another mismatching signature in Additions somewhere).

Cheers,
David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]