Re: NSNotFound
Re: NSNotFound
- Subject: Re: NSNotFound
- From: Thomas Davie <email@hidden>
- Date: Sat, 15 Jan 2011 18:51:52 +0000
On 15 Jan 2011, at 18:43, Richard Somers wrote:
> NSNotFound is formally defined as NSIntegerMax. But the framework methods returning NSNotFound are typically typed NSUInteger.
>
> Is there a technical reason why NSNotFound is not defined as NSUIntegerMax?
1) Because it's usable for NSInteger too.
2) By looking at these values you're breaking the abstraction barrier. NSNotFound could have *any* value, and in fact its value could change from cocoa version to cocoa version. Stop looking!
Bob_______________________________________________
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
References: | |
| >NSNotFound (From: Richard Somers <email@hidden>) |