Re: Binding and Observers
Re: Binding and Observers
- Subject: Re: Binding and Observers
- From: mmalc Crawford <email@hidden>
- Date: Tue, 08 Dec 2009 14:30:52 -0800
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 (email@hidden)
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:
This email sent to email@hidden