• 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: Question about NSRange on the G5 and the future sizeof(int).
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about NSRange on the G5 and the future sizeof(int).


  • Subject: Re: Question about NSRange on the G5 and the future sizeof(int).
  • From: Clark Cox <email@hidden>
  • Date: Sun, 13 Jul 2003 12:49:42 -0400

On Sunday, July 13, 2003, at 10:36, James Quick wrote:

In both Panther and Jaguar, the NSRange structure elements, 'location' and 'length',
are of type unsigned int. I am considering the use of NSRange to build a
database of locations in a runtime image of an executable. On G3 and G4
architectures this will be correct. What about the G5? Will an unsigned int
be able to handle sizeof(aPointer)?

That's a bad idea, even without considering the G5. the NSRange structure is meant for representing a range within a sequence, not for representing a pointer and size. You'd be better off using your own structure or class.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Question about NSRange on the G5 and the future sizeof(int).
      • From: Sherm Pendley <email@hidden>
References: 
 >Question about NSRange on the G5 and the future sizeof(int). (From: James Quick <email@hidden>)

  • Prev by Date: Re: Question about NSRange on the G5 and the future sizeof(int).
  • Next by Date: Xcode, Panther, ZeroLink and everything
  • Previous by thread: Re: Question about NSRange on the G5 and the future sizeof(int).
  • Next by thread: Re: Question about NSRange on the G5 and the future sizeof(int).
  • Index(es):
    • Date
    • Thread