-[NSNotificationCenter postNotificationName:object:] Can I pass nil for object?
-
29-10-2019 - |
Question
Can I pass nil for the object argument of -[NSNotificationCenter postNotificationName:object:]
since the observers don't care who the sender is, or is it better practice to pass self
for the object argument even though the observers aren't checking who sent the notification?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow