nsscreencast / comments

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

Typed Notifications - NSScreencast #194

Open subdigital opened 3 years ago

subdigital commented 3 years ago

Written on 09/27/2019 14:16:04

URL: https://nsscreencast.com/episodes/410-typed-notifications

subdigital commented 3 years ago

originally written by Michael Lenaghan on 05/16/2020 01:39:03

I think there's a mistake here, and I think the same mistake is mentioned in the video: when you use block-based observers, you have to eventually call removeObject() with the returned value; letting the token go out of scope isn't enough. See removeObject(:_) for details.