In both methods that you suggest, the variable objectrepresents the sender of the notification, and this can be anything. To provide additional objects with a notification, you can transfer the dictionary with your objects to userInfo.
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:
someObject, @"someObject",
anotherObject, @"anotherObject", nil];
[[NSNotificationCenter defaultCenter] postNotificationName:name
object:sender
userInfo:options];
Joost source
share