Re: NSUInteger hash
Re: NSUInteger hash
- Subject: Re: NSUInteger hash
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 16 Aug 2008 15:04:50 -0600
On Aug 16, 2008, at 1:57 PM, Steve Wart wrote:
What's the standard way of hashing non-object values in Cocoa?
Something like this ought to work: (warning - written in Mail,
untested, use at your own risk)
[[NSNumber numberWithUnsignedInteger:someNSUInteger] hash];
You can use NSValue to turn other Foundation data structures into
objects.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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