• 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
Re: Quick Request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick Request


  • Subject: Re: Quick Request
  • From: Don Murta <email@hidden>
  • Date: Fri, 08 Feb 2002 01:10:09 -0700

Hmm typing into google "multiple declarations for method" does bring up a few hits (actually all of them are relevant) if you search for the string, probably a better place to look than in the manual (i find at least).
You get the warning cause you've got two classes that have function calls named the same but return different values, and worse off they're only know to be of type id when you call that function. The compiler gets confused, you get warnings.
I'm making some assumptions here, but change the type of the object your sending the message to that's giving the warning to its proper type (ie. not id) where ever the variable is declared.

Don

On Thursday, February 7, 2002, at 11:41 PM, Isaac Sherman wrote:
Could someone give me a heads-up to where I can get info on how to avoid the
"multiple declarations for method x" warning? I ran a very cursory check of
the manual, but couldn't find it. I've got to sleep.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Quick Request (From: Isaac Sherman <email@hidden>)

  • Prev by Date: Re: Sorting MutableArrays
  • Next by Date: Re: Offscreen drawing again ...
  • Previous by thread: Quick Request
  • Next by thread: Sorting MutableArrays
  • Index(es):
    • Date
    • Thread