FAQ Database Discussion Community


NSNumber numberWithInt:nnid error

objective-c,nsinteger
I get this error: Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int' and it points at nnid. How can I fix this? // databaseden haberleri cek -(NSMutableArray *)getNews: (NSInteger)nnid { [database open]; FMResultSet *results = [database executeQuery: @"SELECT * FROM news WHERE newsubid = ? order by ndate...

Split double-digit NSInteger into Two NSIntegers

ios,nsinteger
I am trying to figure out how to take a double-digit NSInteger on iOS (like 11) and turn it into 2 separate NSIntegers, each looking like "1". It will always be just 2 digits in the NSInteger, no more, no less, and no decimals.

Implicit conversion loses integer precision in ZLib compression method

ios,objective-c,zlib,nsinteger
Implicit conversion loses integer precision: 'unsigned long' to 'uInt' (aka 'unsigned int') I am trying to update my application from 32bit to 64bit, since changing the architecture I have recived an error as decribed above. I have a method that takes NSData that is zlib compressed and returns the...