• 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: Can't cram an NSRange into an NSArray?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Can't cram an NSRange into an NSArray? (From: Charles Jolley <email@hidden>)

  • Prev by Date: Re: Can't cram an NSRange into an NSArray?
  • Next by Date: keyEquivalentModifierMask problems with Shift
  • Previous by thread: Re: Can't cram an NSRange into an NSArray?
  • Next by thread: [Q] large flat files usage
  • Index(es):
    • Date
    • Thread