nsscreencast / comments

Public comments on NSScreencast.com
0 stars 0 forks source link

Local Notifications - NSScreencast #88

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 06/20/2015 13:34:44

URL: https://nsscreencast.com/episodes/174-local-notifications

subdigital commented 3 years ago

originally written by toddvalentine on 06/21/2015 17:56:38

Why would the delegate property on the TimedButton class need to be an @IBOutlet?

subdigital commented 3 years ago

originally written by subdigital on 06/21/2015 19:52:30

It doesn’t need to be an IBOutlet, but if you’re writing reusable controls like this, it helps to allow them to be configured within Interface Builder.

subdigital commented 3 years ago

originally written by Dave Green on 06/23/2015 07:03:06

Hi Ben,

Great episode as always, I am a recent subscriber to your screencasts and wondered if it would possible to include the 'before' project in Git? I like to follow along whilst watching but the project in Git is always the completed version. Railscasts had a nice approach for before and after projects on a screencast: https://github.com/ryanb/ra...

subdigital commented 3 years ago

originally written by subdigital on 06/23/2015 14:02:42

I’ve done this on a few episodes in the past, I just tend to forget. I will try to remember to do this more in the future. Thanks for the comment!

subdigital commented 3 years ago

originally written by Jasdev Singh on 08/24/2015 16:12:33

You mentioned that in iOS 9 you don't need to deregister from NSNotificationCenter in `deinit`. Do you have a link for more information about this?

subdigital commented 3 years ago

originally written by subdigital on 08/24/2015 19:25:08

“In OS X 10.11 and iOS 9.0 NSNotificationCenter and NSDistributedNotificationCenter will no longer send notifications to registered observers that may be deallocated. If the observer is able to be stored as a zeroing-weak reference the underlying storage will store the observer as a zeroing weak reference, alternatively if the object cannot be stored weakly (i.e. it has a custom retain/release mechanism that would prevent the runtime from being able to store the object weakly) it will store the object as a non-weak zeroing reference. This means that observers are not required to un-register in their deallocation method.” https://developer.apple.com... <https: developer.apple.com="" library="" prerelease="" mac="" releasenotes="" foundation="" rn-foundation="" index.html#="" apple_ref="" doc="" uid="" tp30000742="">
(Search for “NSNotificationCenter”)

subdigital commented 3 years ago

originally written by Jasdev Singh on 08/24/2015 19:36:01

Perfect, thanks so much for the quick reply!