• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why does NSArray count return NSUInteger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does NSArray count return NSUInteger?


  • Subject: Re: Why does NSArray count return NSUInteger?
  • From: Bruce Turner <email@hidden>
  • Date: Mon, 30 May 2011 13:42:37 -0400

A couple of other issues about the use of NSUInteger throughout the Foundation Framework.

Core Foundation functions tend to use CFIndex and CFRange, both signed. This is true for CFArray and other collections. If you mix Foundation and Core Foundation you have to deal with this.

Many C functions also use int.

The use of NSUInteger seems to be an exception to common C usage. I am not saying it is wrong but it is at odds with other conventions. It would be interesting to find out why NSUInteger was chosen.

Bruce Turner
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Why does NSArray count return NSUInteger?
  • Next by Date: Re: Referencing struct fields in C
  • Previous by thread: Re: Why does NSArray count return NSUInteger?
  • Next by thread: Re: Why does NSArray count return NSUInteger?
  • Index(es):
    • Date
    • Thread