0

I have only basic objective-c knowledge.

I saw a code snippet of an iOS project, which uses the following statement for a property:

@interface Store : NSObject
{
}
@property (nonatomic) long long amount; // 2 long type? why?
...
@end

Why is there a long long type definition?

What does it mean?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Mellon
  • 37,586
  • 78
  • 186
  • 264
  • Its actually a remnant of C. http://en.wikipedia.org/wiki/C_data_types – Ryan Poolos Apr 18 '13 at 12:23
  • Just FYI, it is not a specific Objective-C type, it comes from C (and since everything that is in C also is in Objective-C, you can find it in your iOS and OS X projects, even if you don't think you are coding in C) – Monolo Apr 18 '13 at 12:24

1 Answers1

0

long long (comes from C) is usually a 64 bit integer.

Tom van der Woerdt
  • 29,532
  • 7
  • 72
  • 105