iPhone : Primitives getters and setters
Posted
by
Burf2000
on Stack Overflow
See other posts from Stack Overflow
or by Burf2000
Published on 2010-12-30T23:47:02Z
Indexed on
2010/12/30
23:54 UTC
Read the original article
Hit count: 151
I feel a bit miffed at the moment, I done a few iPhone projects that use floats and ints etc and all is fine.
I now using OpenGL and GLFloat[] C arrays etc and it seems unless I make methods to set / get them it crashes on the device (not the simulator). Now as these are not setup as properties (I don't think c arrays can) it kind of makes sense. However the project has been working for months without them. It seems something in the code is wiping out anything float / ints to the point that the debugger can see an assigned value but accessing it crashes the phone.
As soon as I think I know something for this platform, something changes my mind lol.
© Stack Overflow or respective owner