[swift-users] Importing NSUInteger in my own Objective-C Code as Int
jens at mooseyard.com
Fri Jan 15 12:19:49 CST 2016
> On Jan 15, 2016, at 5:19 AM, Marco Masser via swift-users <swift-users at swift.org> wrote:
> Swift imports NSUInteger in Objective-C APIs as Int, but only for Frameworks like Foundation and AppKit. For other code, NSUInteger is imported simply as UInt.
Really? I’d never noticed that. It seems wrong to me, since NSUInteger is clearly an unsigned type, so it should map to Uint.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users