Re: Question about NSRange on the G5 and the future sizeof(int).
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.