Re: Messages without a matching method signature will be assumed to return 'id' and accept '...' as arguments.
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