Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

nsuinteger

Difference between int, NSInteger and NSUInteger

September 12, 2023 by Tarik

In such cases you might right click and go to definition: #if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64 typedef long NSInteger; typedef unsigned long NSUInteger; #else typedef int NSInteger; typedef unsigned int NSUInteger; #endif

Categories iphone Tags int, iphone, nsinteger, nsuinteger, objective-c Leave a comment

What NSNumber (Integer 16, 32, 64) in Core Data should I use to keep NSUInteger

February 9, 2023 by Tarik

Do you really need the entire range of an NSUInteger? On iOS that’s an unsigned 32 bit value, which can get very large. It will find into a signed 64 bit. But you probably don’t need that much precision anyway. The maximum for a uint32_t is UINT32_MAX which is 4,294,967,295 (4 billion). If you increment … Read more

Categories core-data Tags core-data, nsuinteger Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa