Can one pass arguments using [NSNotificationCenter defaultCenter] postNotificationN~?

Discussion in 'iOS Programming' started by Bracer, Mar 7, 2010.

  1. Bracer macrumors newbie

    Joined:
    Nov 24, 2009
    #1
    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];
    
     

Share This Page