• 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: 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]

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


  • Subject: Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
  • From: Citizen <email@hidden>
  • Date: Thu, 4 Dec 2008 10:37:48 +0000

Also, by convention in Objective-C "get" is normally used as a prefix to indicate that the method is going to use one of its arguments to return a value by reference.

For getters and setters in Objective-C you use:

- (void) setMyVariable:(type *)myVar;

for setters, and:

- (type *) myVariable;

for getters.

Using this convention for getters and setters will save you a lot of trouble later on.

On 4 Dec 2008, at 00:33, Scott Ribe wrote:

- (CGPoint) getLocalPointFromGlobalPoint: (CGPoint) globalPoint inView:
(UIView*) localView {
   ... Use globalPoint and localView arguments here
}

so this should probably be:

- (CGPoint) localPointFromGlobalPoint:(CGPoint)globalPoint inView:(UIView*)localView;

Regards,
Dave

------
David Kennedy (http://www.zenopolis.com)
 _______________________________________________
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: Jack Repenning <email@hidden>
References: 
 >Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments. (From: Scott Ribe <email@hidden>)

  • Prev by Date: XCode/Dashcode syntax coloring phtml
  • Next by Date: Re: Any reason to avoid GCC-4.2 for Leopard and later targeted code?
  • Previous by thread: Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
  • Next by thread: Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
  • Index(es):
    • Date
    • Thread