• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie Question on a method signature
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie Question on a method signature


  • Subject: Newbie Question on a method signature
  • From: James Cicenia <email@hidden>
  • Date: Wed, 4 Jun 2008 15:14:50 -0500

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Newbie Question on a method signature
      • From: Michael Vannorsdel <email@hidden>
    • Re: Newbie Question on a method signature
      • From: Bill Bumgarner <email@hidden>
    • Re: Newbie Question on a method signature
      • From: "Hamish Allan" <email@hidden>
  • Prev by Date: Re: IBOutlet, multiple nibs, method duplication
  • Next by Date: Re: Newbie Question on a method signature
  • Previous by thread: Re: Drawing over a QTCaptureView
  • Next by thread: Re: Newbie Question on a method signature
  • Index(es):
    • Date
    • Thread