• Updated UITableViewRowAction Sample

    I just updated an old post with a sample code on how to use UITableViewRowAction. The biggest new? I used an interactive Playground instead of the old sample code. When possible, I think it’s a much better way to share small projects for readers to try.

  • NSConf Argentina 2016

    I had the pleasure of being a speaker at the NSConf Argentina 2016. You will find some material here, and you can check my talk and the rest of this and past editions at the conference’s website.

  • Apple TV and Universal Search

    An old article, but I have some thoughts:

    “At launch we’ll have iTunes, Netflix, Hulu, Showtime, and HBO — so we’ll have five major inputs into universal search initially,” Cook said. “But we’re also opening an API, so that others can join in.”

    I still have some questions:

    • How open will this API be? Any app can join? How do you prevent YouTube from populating your search results? What about Plex, or other apps that can play content not guaranteed to have been obtained legally?
    • From the demo we got, it seems that if you search for a movie or TV Show, you get a single screen with its metadata and sources to play from. How will Apple make movies and TV Shows unique on this search? Will they provide some sort of tool to look up the unique identifier of a given movie or show?
  • BetterTouchTool vs MagicPrefs

    Ever since I got a Magic Mouse, I’ve been using MagicPrefs to configure a middle click on it (basically, to open Safari tabs in the background).

    With El Capitan, Apple added a feature to shake the mouse to find the pointer. Even though I don’t need it too much, I was bummed to discover that this feature failes with MagicPrefs, so it gave me a good excuse to try BetterTouchTool instead, which works with this feature.

    Overall, I like MagicPrefs better (it’s a System Preferences pane instead of only an app, and the settings are less cluttered), but I’ll be sticking to BetterTouchTool for now.

  • Using nscurl With Self-Signed Certificates

    New with iOS 9 and Mac OS X 10.11 is ATS, App Transport Security. To help you troubleshoot HTTPS settings, Apple is providing a command line tool called nsurl.

    As I’m using a Self-Signed certificate, nscurl fails for me with all its settings. Something like this:

    ---
    TLSv1.2 with PFS disabled
    2015-10-06 18:11:59.609 nscurl[39559:5040069] CFNetwork SSLHandshake failed (-9801)
    2015-10-06 18:11:59.610 nscurl[39559:5040069] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9801)
    Result : FAIL
    ---
    

    As far as I could find, there’s no parameter to specify a certificate to be used. The only work-around I was able to use is:

    1. Install the certificate on your Mac’s keychain.
    2. Using Keychain Access, change the trust settings of the certificate to “Always Allow”.

    With this change you should be able to run nscurl and see the results. Please remember to remove the certificate from your keychain afterwards.