In Cocoa do you prefer NSInteger or int, and why?

前端 未结 5 1699
臣服心动
臣服心动 2020-12-02 13:21

NSInteger/NSUInteger are Cocoa-defined replacements for the regular built-in types.

Is there any benefit to using the NS* types over the bu

5条回答
  •  無奈伤痛
    2020-12-02 13:50

    I prefer the standard c style declarations but only because I switch between several languages and I don't have to think too much about it but sounds like I should start looking at nsinteger

提交回复
热议问题