Re: Re: Re: KVO question
Re: Re: Re: KVO question
- Subject: Re: Re: Re: KVO question
- From: "Johan Kool" <email@hidden>
- Date: Tue, 23 May 2006 16:21:20 +0200
Hello,
Perhaps a bit hackery, but you could do something like this (in pseudocode):
on the "current" changed notification:
set justSwitchedToCurrentBool to yes
on the "current.bar" changed notification:
if justSwitchedToCurrentBool == yes then
set justSwitchedToCurrentBool to no
else
do what you want to do if current.bar changed
This assumes that on every "current" notificiation, a "current.bar"
notification follows and that it happens in that order. This way the
code that does what you want to do if bar changes only fires when the
second "current.bar" notification is received.
Regards,
Johan
--
http://www.johankool.nl/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden