Re: Can't cram an NSRange into an NSArray?
Re: Can't cram an NSRange into an NSArray?
- Subject: Re: Can't cram an NSRange into an NSArray?
- From: Andy Lee <email@hidden>
- Date: Wed, 19 Jun 2002 17:44:08 -0400
At 4:27 PM -0500 6/19/02, Charles Jolley wrote:
On Wednesday, June 19, 2002, at 04:10 PM, Kirk Kerekes wrote:
Admittedly, using NSStringFromRange and NSRangeFromString make for
easier debugging, but NSValue is probably quicker.
In fact, NSLogging an NSValue containing an NSRange shows the two
numbers, albeit in hex. If you can handle hex, it's really just as
good for debug.
If you're NSLogging you could just do:
NSLog(@"range is: %@", NSStringFromRange([myValue rangeValue]));
--Andy
_______________________________________________
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.