• 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: How to write an RSS client for iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to write an RSS client for iOS


  • Subject: Re: How to write an RSS client for iOS
  • From: "Gary L. Wade" <email@hidden>
  • Date: Sat, 13 Feb 2016 14:02:58 -0800

Cool.  Hopefully it’ll be in the next release, so keep adding bug reports.  I didn’t want to write another regular expression to do something the class already does and get it wrong; if I do that, I might as well not even use NSDataDetector.  In case you’re curious, Xcode, while debugging some runtime environments, will give you the info that’s really useful for such result objects.
—
Gary

> On Feb 13, 2016, at 1:18 PM, Alex Kac <email@hidden> wrote:
>
> We had the same issue and what we do is we look at the data detector match string, determine if its date or time only using several techniques including a regex…and go from there. Its not perfect, but it works relatively well.
>
> We do have a radar on the need to know if it found a date or date/time. Ideally I’d like to get NSDateComponents back from the data detector so we know what was found.
>
>> On Feb 13, 2016, at 1:16 PM, Gary L. Wade <email@hidden> wrote:
>>
>> For dates, you can try using NSDataDetector, but I’ve found recently that it doesn’t work well if you only have a date or a time, only if you have both; it adds a placeholder value in those cases and doesn’t report that you only have one or the other.  In the case for RSS feeds, though, you shouldn’t have that issue unless you’re using it on content, but keep that in mind.
>>
>> And, if anyone else finds the same need from NSDataDetector as me, please join me in writing a bug requesting this to be fixed in the next OSes and documented how we can make some use of NSDataDetector in the current and prior versions (I have personally figured this out already, but it’s fragile and not the best or supported practice). Note that my bug has already been duplicated, probably from my initial tech support incident, and this helps get it prioritized higher.
>> —
>
>
> Alex Kac - El capitán
>


_______________________________________________

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


References: 
 >How to write an RSS client for iOS (From: email@hidden)
 >Re: How to write an RSS client for iOS (From: Jens Alfke <email@hidden>)
 >Re: How to write an RSS client for iOS (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Re: Full-text indexing on iOS
  • Next by Date: NSDateFormatter behavior
  • Previous by thread: Re: How to write an RSS client for iOS
  • Next by thread: Third party keyboards in iOS
  • Index(es):
    • Date
    • Thread