• 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: Problem using static floats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: g++ arch flag between Debug and Release
  • Next by Date: crash in _CFReadBytesFromFile
  • Previous by thread: Re: Problem using static floats
  • Next by thread: Re: Problem using static floats
  • Index(es):
    • Date
    • Thread