Im working on my project and Im getting some warnings which I cannot fix.
(I hate warnings and wanna get rid of it)
Its about the following functions I made:
The warning I get is :
'plistFile' used as the name of the previous paramater rather than as part of the selector
and same one about 'theKey'
Why does this occur ? As in these paramaters are only used inside the functions... When renaming the parameters for every function so they are not the same, its still not working well.
Next of that, this is my .h file.
How can I make it so when I'm using these functions that the Xcode already tells me like
[plistMngr insertArray: (NSString*)plistFile: (NSString*)insertKey
So that I know later what the paramater should contain? Instead of that it tells me
insertArray: (NSString*): (NSString*)
(I hate warnings and wanna get rid of it)
Its about the following functions I made:
Code:
+(BOOL)plistFound:(NSString *)fileName;
+(BOOL)copyPlist:(NSString*)fileName;
+(BOOL)removePlist:(NSString*)fileName;
+(NSMutableDictionary*)loadPlist:(NSString*)fileName;
+(void)insertArray: (NSString*)plistFile: (NSString*)insertKey: (NSMutableArray*)theArray;
+(void)insertValue: (NSString*)theFile: (NSString*)theKey: (NSString*)theValue;
+(BOOL)deleteFromList: (NSString*)plistFile: (NSString*)deleteKey;
+(BOOL)keyExists: (NSString*)plistFile: (NSString*)checkKey;
The warning I get is :
'plistFile' used as the name of the previous paramater rather than as part of the selector
and same one about 'theKey'
Why does this occur ? As in these paramaters are only used inside the functions... When renaming the parameters for every function so they are not the same, its still not working well.
Next of that, this is my .h file.
How can I make it so when I'm using these functions that the Xcode already tells me like
[plistMngr insertArray: (NSString*)plistFile: (NSString*)insertKey
So that I know later what the paramater should contain? Instead of that it tells me
insertArray: (NSString*): (NSString*)