[swift-users] Importing NSUInteger in my own Objective-C Code as Int
Jens Alfke
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.
—Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160115/1c2805d8/attachment.html>
More information about the swift-users
mailing list