Now.... I would have thought this was pretty basic but I am having problems bringing a value that has been defined as an int across to a NSInteger.
I see a type casting problem but not sure how to resolve.
How is this done??
Pete
This is basic C programming. Very, very, very basic C programming.
Look at the header file how NSInteger is defined. You know how to find the definition of a type in XCode?
It is a typedef for a primitive C data type, just like int.
Therefore all you do is a cast like (NSInteger) i.
But in most cases, the compiler will do this automatically because this is just an automatic conversion.
For details, type "N1256" into google which will get you the latest free draft of the C language standard.