• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re: Re: KVO question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >KVO question (From: "Peter Boctor" <email@hidden>)
 >Re: KVO question (From: Sean Murphy <email@hidden>)
 >Re: Re: KVO question (From: "Peter Boctor" <email@hidden>)

  • Prev by Date: Menu and views
  • Next by Date: Re: Bug in PDFKit's PDFDocument attributes?!
  • Previous by thread: Re: Re: KVO question
  • Next by thread: Re: KVO question
  • Index(es):
    • Date
    • Thread