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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to