use NSUInteger in cocoa context