Return to Snippet

Revision: 19214
at October 18, 2009 08:10 by gerhardsletten


Initial Code
- (void)applicationDidFinishLaunching:(UIApplication *)application {    
    
    // Override point for customization after app launch    
    [window addSubview:viewController.view];
[viewController addObserver:self forKeyPath:@"iVar" options:(NSKeyValueObservingOptionNew) context:NULL]; 
    [window makeKeyAndVisible];
}

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object 
						change:(NSDictionary *)change context:(void *)context { 
    NSLog(@"Value %@ changed in %@", keyPath, [object description]); 
}

Initial URL


Initial Description
Communication between objects..

Initial Title
Key Value Observer

Initial Tags
iphone

Initial Language
Objective C