• 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: Shawn Erickson <email@hidden>
  • Date: Sun, 13 Jul 2003 09:18:59 -0700

On Sunday, July 13, 2003, at 07:36 AM, 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)?

It would be risky to stick a memory pointer into the location part of the range, also that goes against what NSRange is really about. NRRange is to store an index and length from that index not a pointer to something in RAM directly. I doubt NSRange will be changed to have 64 bit location (or length) any time soon, unless Apple releases a complete duplicate 64 bit version of all frameworks.

I would consider making your own structure that used void* or look around for a CF layer one that may do what you want.

-Shawn
_______________________________________________
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: James Quick <email@hidden>
References: 
 >Question about NSRange on the G5 and the future sizeof(int). (From: James Quick <email@hidden>)

  • Prev by Date: Re: [ABPerson properties]: selector not recognized
  • Next by Date: Re: Question about NSRange on the G5 and the future sizeof(int).
  • Previous by thread: 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