Re: Problem using static floats
Re: Problem using static floats
- Subject: Re: Problem using static floats
- From: "Matt West" <email@hidden>
- Date: Thu, 19 Jul 2007 13:04:33 +0100
On Jul 19, 2007, at 14:09 , Joel Norvell wrote:
[MyWidget setPageHeight:[self pageHeight]];
.
.
+ (float) getPageHeight { return pageHeight;}
I wonder, should your method name be "pageHeight" instead of "getPageHeight" ?
I am very new to Cocoa, but the code convention is to give your
accessor the same name as the property, not prefix it with 'get' like
I do in my Java day job. This convention is vital for the Key Value
Coding to work.
Hope this helps
matt.
_______________________________________________
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