• 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: NSNotFound
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSNotFound
      • From: "Sean McBride" <email@hidden>
References: 
 >NSNotFound (From: Richard Somers <email@hidden>)

  • Prev by Date: NSNotFound
  • Next by Date: Re: QuickLook returning small image
  • Previous by thread: NSNotFound
  • Next by thread: Re: NSNotFound
  • Index(es):
    • Date
    • Thread