iPhone : Primitives getters and setters
- by Burf2000
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.