• 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
When can String.enumerateSubstringsInRange ever pass in NIL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When can String.enumerateSubstringsInRange ever pass in NIL?


  • Subject: When can String.enumerateSubstringsInRange ever pass in NIL?
  • From: Daryle Walker <email@hidden>
  • Date: Sat, 28 May 2016 21:27:26 -0400

The last argument to the method is a closure with four parameters. The first argument is an optional String. I can't think of a circumstance where it'll be NIL. (I need to know for testing.) Especially since it can be recreated in terms of the callback's second argument, which isn't optional. (So the string can be empty at worst.). Am I missing something, or is this a bug (and should be non-optional)?

Sent from my iPhone
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: When can String.enumerateSubstringsInRange ever pass in NIL?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: debugging AirDrop (update)
  • Next by Date: Simplest way to generate audio tones?
  • Previous by thread: Re: debugging AirDrop (update)
  • Next by thread: Re: When can String.enumerateSubstringsInRange ever pass in NIL?
  • Index(es):
    • Date
    • Thread