I have the following:
((ProjectListCell *)cell).budgetHealth.textColor = [self
returnUIColorForFont:s];
And here is my method:
- (UIColor *) returnUIColorForFont:(NSString *) theString{
if([theString compare:@"1"] == NSOrderedSame){
return [UIColor greenColor];
}else if([theString compare:@"0"] == NSOrderedSame){
return [UIColor yellowColor];
}else if([theString compare:@"-1"] == NSOrderedSame){
return [UIColor redColor];
}else{
return [UIColor grayColor];
}
}
why does it tell me:
warning: (Messages without a matching method signature will be
assumed to return 'id' and accept...
Thank you
James Cicenia
t
T
T
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]