> On 20 Feb 2016, at 11:24, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Feb 19, 2016, at 19:00 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote: >> >> I use Other C Flags: -DNS_BUILD_32_LIKE_64=1 > > AFAIK this is a Mac-only thing. I don’t believe it works on a 32-bit iOS > platform, in particular because I don’t believe there are any 64-bit system > frameworks on such a system. There’d be an ABI mismatch.
This: UIDevice *theDevice = [UIDevice currentDevice]; NSLog(@“%s NSUInteger %lu bytes on %@“,__FUNCTION__, sizeof(NSUInteger), theDevice.localizedModel); prints: -[AppDelegate application:didFinishLaunchingWithOptions:] NSUInteger 4 bytes on iPhone (iPone 4s in Simulator) -[AppDelegate application:didFinishLaunchingWithOptions:] NSUInteger 8 bytes on iPad (iPad Air in Simulator) > > Also (I could be wrong but) I don’t think it was ever in the iOS SDK. > > The point about Apple’s %ld/(long) recommendation was that it replaced a > source code construct that was correct only via knowledge of the architecture > it was compiled for, with a construct that was correct for all platforms. With DNS_BUILD_32_LIKE_64 NSUInteger is long on all platforms, so %lu works in all cases. Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com