Skip to content

NSMutableNumber v1.2.1

Choose a tag to compare

@belisoful belisoful released this 13 Jun 01:27
· 13 commits to master since this release

Implements a thread-safe NSMutableNumber functionally equivalent NSNumber with additional features in NSNumber.

This release adds the following to both NSMutableNumber and NSNumber classes:

  • NSMutableCopying protocol and implementations.
  • bitNot for bitwise NOT of integers within a new instance.
  • bitNotValue for bitwise NOT of integers as an unsigned long long.
  • "unichar" type initialization and getters/setters.
  • isNegativeOne, isZero, isOne, isTwo, isThree, isFour, isFive, isNAN, isInfinity, and isNegativeInfinity properties.
  • plusOne and subtractOne for incrementing and decrementing to a new instance.
  • NSMutableNumber adds the following methods
    - addOne and minusOne for incrementing and decrementing the mutable number. Returns self.