• 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: multiple declarations for method?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple declarations for method?


  • Subject: Re: multiple declarations for method?
  • From: Fabian Lidman <email@hidden>
  • Date: Thu, 30 Dec 2004 19:16:52 +0100

short decimalLen = [[[NSUserDefaults standardUserDefaults] objectForKey:NSDecimalSeparator] length];

This means that there are several different classes who define a "length" method, and the linker doesn't know which one to use (since you're sending the message to an id). In this case it worked out anyway. In other cases, typecast your object to the appropriate class to make sure the linker knows which method you're after.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >multiple declarations for method? (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: multiple declarations for method?
  • Next by Date: Re: Using custom build rules
  • Previous by thread: Re: multiple declarations for method?
  • Next by thread: adding a target to an aggregate
  • Index(es):
    • Date
    • Thread