On Dec 8, 2009, at 2:17 am, Gerriet M. Denkmann wrote: > - (void)windowWillClose:(NSNotification *)notification > { > id f = [ ikView observationInfo ]; > NSString *oi = [ f description ]; > > BOOL ok; > NSString *obs = @"Observer:"; > NSString *kpa = @"Key path:"; > unsigned long long uuu; > NSString *keyPath1; > > NSScanner *u = [ NSScanner scannerWithString: oi ]; > [ u setCharactersToBeSkipped: [ NSCharacterSet > whitespaceAndNewlineCharacterSet ] ]; > > ok = [ u scanUpToString: obs intoString: NULL ]; > ok = [ u scanString: obs intoString: NULL ]; > ok = [ u scanHexLongLong: &uuu ]; > ok = [ u scanUpToString: kpa intoString: NULL ]; > ok = [ u scanString: kpa intoString: NULL ]; > ok = [ u scanUpToString: @"," intoString: &keyPath1 ]; > [ myIkView removeObserver: (id)uuu forKeyPath: keyPath1 ]; > } >
???!! What's wrong with unbind:? <http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html#//apple_ref/occ/instm/NSObject/unbind:> mmalc _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com