Notification Gotchas
Notice that
self
is explicitly referenced inside of the block.self
can also be referenced implicitly by accessing an instance variable. By default, blocks capture variables read-only, and objects are retained. Thereforeself
is retained, and we’re in a retain cycle situation.
That API was simpler with garbage collection.