Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bracer

macrumors newbie
Original poster
Nov 24, 2009
14
0
Can one pass arguments using [NSNotificationCenter defaultCenter] postNotificationName ?

//Signal:
Code:
[[NSNotificationCenter defaultCenter] postNotificationName:@"FunctionName" object:self];

//Receiver
Code:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(FunctionName) name:@"FunctionName" object:nil];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.