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

Re: NSNotFound signed???


  • Subject: Re: NSNotFound signed???
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 12 Jun 2013 00:52:40 -0700

On Jun 12, 2013, at 00:42 , Quincey Morris <email@hidden> wrote:

> If you archive a 64-bit NSNotFound, it's no longer NSNotFound when unarchived on a 32-bit architecture, and vice versa.

Oops, just to clarify:

I don't mean there's anything wrong with the archiving or unarchiving per se.

It's no longer NSNotFound when you encode/decode a NSUInteger/NSInteger variable, because there'll be truncation or "incorrect" sign extension of the scalar value, in one direction or the other.

_______________________________________________

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 signed???
      • From: Oleg Krupnov <email@hidden>
References: 
 >NSNotFound signed??? (From: Oleg Krupnov <email@hidden>)
 >Re: NSNotFound signed??? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: NSNotFound signed???
  • Next by Date: Re: NSNotFound signed???
  • Previous by thread: Re: NSNotFound signed???
  • Next by thread: Re: NSNotFound signed???
  • Index(es):
    • Date
    • Thread