NSBrief

NSBrief

By Saul MoraTechnologyArtsDesign
Download on the App Store

NSBrief episodes

  • #6: Kirby Turner

    Topic

    Saul and Kirby discuss support in an indie dev shop and the main tool Kirby uses to keep his business running like a well oiled machine.

    Download Episode

    Tools:
    FogBugz - http://www.fogcreek.com/fogbugz/
    Tickets - http://manicwave.com/products/tickets
    Lighthouse - http://www.lighthouseapp.com
    Lighthouse Keeper - http://www.mcubedsw.com/software/lighthousekeeper
    Tender - http://www.tenderapp.com

    Guest

    Kirby Turner
    White Peak Software
    http://www.whitepeaksoftware.com

    Hey Peanut - iTunes
    LaborMate - iTunes

    Open Source Spotlight

    NSLogger

    https://github.com/fpillet/NSLogger

    NSLogger is a high perfomance logging utility which displays traces emitted by client applications running on Mac OS X or iOS (iPhone OS). It replaces your usual NSLog()-based traces and provides powerful additions like display filtering, image and binary logging, traces buffering, timing information, etc.

    Upcoming Conferences

    ESC Silicon Valley

    http://esc-sv09.techinsightsevents.com/

    May 2-5, 2011

    San Jose, CA

    MacWorld Mobile iOS
    http://www.macworld-mobile.com
    February 17, 2011
    Barcelona, Spain

    iPhoneDevCon

    http://www.iphonedevcon.com

    April 4-6, 2011

    Boston, MA

    Voices That Matter
    http://iphonespring2011.crowdvine.com/
    April 9-10, 2011
    Seattle, WA

    CodeConf
    http://www.codeconf.com
    April 9-10, 2011
    San Francisco, CA

    51 min
  • #5: 360idev Converstations

    In this episode, Saul travels to Austin, TX for 360idev and find the hallway conversations riveting.

    Download Episode

    Gettin’ to Know Cocoa - NSDate

    NSDate Mac Docs
    NSDate iOS Docs
    Unicode Date Formatting Reference

    Open Source Spotlight - Active Record Fetching for Core Data

    Conversations from 360idev:

    • Patrick Burleson - @pbur - BitBQ
    • Collin Donnell - @collindonnell - Blog
    • Kirby Turner - @kirbyt - White Peak Software
    • Ben Reubenstein - @benr75 - Xcellent Creations
    • Dan Andersen - @SimplyImagined - Simply Imagined, LLC
    • Chris Hubbard - @chrisvire - Blue Vire
    • Gettin’ to Know Cocoa - Transcript

      Welcome to Getting to Know Cocoa , I’m Saul Mora. On each installment of Getting to Know Cocoa, we’ll peek inside the Developer docs and introduce  a class, Framework, function or feature.

      In this edition of Gettin to Know Cocoa, we’ll be talking about NSDate and NSDateFormatter.

      The first thing you need to understand about NSDate is that instances are immutable. That is, once they have been initialized, you cannot change the value of that one instance. If oyu need to add or subtract a time interval from an instance, you will be returned with a new instance of an NSDate object. Also, remember that NSDate calculations such as adding time are done with NSTimeIntervals, which are seconds typed as floats.

      NSDate is toll free bridged with CFDate, it’s Core Foundation counterpart. This means that the Core Foundation type is interchangeable in function or method calls with the bridged Foundation object. Therefore, in a method where you see an NSDate * parameter, you can pass a CFDateRef, and in a function where you see a CFDateRef parameter, you can pass an NSDate instance (you cast one type to the other to suppress compiler warnings).

      To create an NSDate, you have a couple of options. First, you can create a date that reflects the date and time that code is run. Simply call [NSDate date]. To create a date representing a particular time interval, you can use [NSDate dateWithTimeIntervalSinceReferenceDate:].  The reference date is 12:00am January 1, 2001. Also available is [NSDate dateWIthTimeIntervaleSince1970:], which is 12:00am January 1, 1970. You can specify negative time intervals to get NSDates prior to the reference date.

      You can add a time interval to a date instance, but the method to do so has changed in iOS 4.0. Use dateByAddingTimeInterval: rather than the deprecated addTimeInterval: method. I am reminded by @pliky on twitter that XCode won’t tell you what’s deprecated in the type ahead prompts.

      Sometimes, you’ll want to parse dates from strings, and for that you’ll need to use NSDateFormatter’s dateFromString: method. You can also print out a custom formatted string using the stringFromDate: method. NSDateFormatters follow the unicode standard formatting strings, and I highly recommend that you at least keep a bookmark handy. I’ll include that in the episode notes.

      You can also listen for a system wide notification, NSSystemClockDidChangeNotification to make sure your app is aware of when the system time changes. And, if you’re curious, you can also see what the value NSTimeIntervalSince1970 is….it’s 978307200.0…which is the number of seconds between from Jan1 1970 to Jan12001.

      You can also compare dates using the compare: method. From this method, you can check the NSComparisonResult return value against NSOrderedSame, NSOrderedDescending or NSOrderedAscending to find out the order of a date. However, if you just want to know which date is later than another, you can use the laterDate: method to get the date that is the later for two dates. There is also an earlierDate: method that will return…the earlierDate…

      On the mac, you have access to a couple other creation methods, namely: [NSDate dateWithNaturalLanguageString:] and dateWithString: . The former will let you put in something like “last Tuesday at dinner” or “3pm december 31”. You can also specify a custom dictionary that will help translate other words. However, this method is primarly based on english words, and it’s use is dicouraged in the docs. The dateWithString method lets you specify a date format in the creation method. Usually in iOS apps, I have to create an NSDate category that does this, and you have it for free in the MacOS APIs.

      As always, I encourage you to take a few minutes and check out the docs in detail for yourself.

      29 min
    • #4: Justin Williams

      In this episode, Saul corners Justin Williams at the 360idev conference in Austin, TX and discusses the latest AppStore releases from SecondGear Software.

      Download Episode

      Show Notes

      Upcoming Events
      360macDev, Denver, CO
      December 10-11
      360macdev.com

      MacWorldMobile Hong Kong
      November 17, 2010
      macworldmobile.com

      MacWorldMobile Barcelona
      February 14-17, 2010
      macworldmobile.com

      Today’s Open Source Framework Spotlight:
      SDWebImage
       http://github.com/rs/SDWebImage

      KTDownloadManager
      http://github.com/kirbyt/KTDownloadManager

      iPhone Image Cache
      http://kosmaczewski.net/projects/iphone-image-cache/

      Seond Gear Software
      http://www.secondgearsoftware.com

      Second Gear Aps

      • http://www.secondgearsoftware.com/elements
      • Sharables - http://www.secondgearsoftware.com/sharables
      • MarkdownMail - http://www.secondgearsoftware.com/markdownmail
      •  

        15 min
      • #3: Dave Wiskus

        In this episode, we talk with Lead Designer and Chief Creative Officer at Double Encore, Inc., an iOS development boutique based in Denver, Colorado. Dave and Saul talk about good and bad elements of design in mobile applications, and how developers can help improve their design skills.

        Download Episode

        Links

        • 360idev iOS Developers Conference: http://www.360idev.com
        • 360macdev Mac Desktop Developer Conference in Denver: http://www.360macdev.com
        • Weet for iPhone: http://itunes.apple.com/us/app/weet-for-twitter/id388488623?mt=8
        • Twitter: http://itunes.apple.com/us/app/twitter/id333903271?mt=8
        • Four Square: http://itunes.apple.com/us/app/foursquare/id306934924?mt=8
        • 57 min
        • #2: John Wilker

          Jade and Saul talk to John Wilker, curator of 360conferences, and the upcoming 360idev in Austin, TX.

          Download Episode

          Show Links
          • http://www.360idev.com
          • http://www.360macdev.com
          • http://labratrevenge.com/httpriot/
          • 32 min
          • #1: Rob Rhyne

            In this episode, Jade and Saul interview Rob Rhyne of MartianCraft and the creator of Briefs.app.

            Download Episode

            Show Links

            http://giveabrief.com/
            http://blog.robrhyne.com/post/1043407467/selling-open-source
            http://blog.robrhyne.com/
            http://twitter.com/capttaco

            General News and Events
            • 360idev in Austin - www.360idev.com
            • 360mac dev in Denver - ww.360macdev.com
            • SecondConf - www.secondconf.com
            • NSCoderNights - Phoenix Area NSCoderNight
              • at Liberty Market in Gilbert Tuesdays at 6pm, http://www.twitter.com/nscodernightphx
              • XCodePhoenix Lab at Paradise bakery, Scottsdale Thursday nights 6pm CocoaHeads
                • Phoenix iOS Meeting - First wednesday of the month, UAT http://phoenix-ios.org
                • XCodePhoenix - Second Thursday
                • http://groups.google.com/group/xcodephoenix
                • If you have any iOS or cocoa related meetups in your area, write to us at [email protected] and we’ll feature it on the podcast

                  50 min

                About NSBrief

                From the publisher's feed

                A brief podcast for cocoa developers, talking about interesting developer-y stuff