• 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
Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.


  • Subject: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
  • From: Søren Krogh Neigaard <email@hidden>
  • Date: Wed, 3 Dec 2008 19:38:04 +0100

Hi xcoders

Still pretty new to this Objective-C and have yet not received my book :p

So I have this class, where I have the following method:

-(CGPoint)getLocalPoint: (UIView*) localView : (CGPoint) globalPoint {
   ... magic here ...
}


In the same class I have another method that calls this method like this:


- (void)onTimer {
    ... vodoo here ...

someView.center = [self getLocalPoint: anotherView : CGPointMake(320 / 2, 480 / 2)];
}



Now I get this warning plus an error saying: error: incompatible type for argument 1 of 'setCenter:'


So it seems somehow it can not identify my method, even though it is in the same class. Im a Java person, what I really wanted is just a private method here??

Med venlig hilsen/Best regards
Søren Neigaard <email@hidden>

If I'd known computer science was going to be like this, I'd never have given up being a rock 'n' roll star.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
      • From: Scott Ribe <email@hidden>
    • Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
      • From: Andy Lee <email@hidden>
    • Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Xcode 3.1.2 and svn 1.5
  • Next by Date: Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
  • Previous by thread: Re: An example project with Help?
  • Next by thread: Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
  • Index(es):
    • Date
    • Thread