Quantcast
Channel: Drew Crawford – Sealed Abstract
Viewing all articles
Browse latest Browse all 41

NSNotificationCenter with blocks considered harmful

$
0
0
So back in the dark ages, we registered to receive notifications like this: -[NSNotificationCenter addObserver:selector:name:object:] In other words, the target-action pattern. When the notification is received, call this selector (action) on this target. And all was well. Then in iOS 4, blocks (closures) were added to iOS. And it was the hip cool thing to […]

Viewing all articles
Browse latest Browse all 41

Trending Articles