Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

KVO

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3025
Location: Europe

PostPosted: Thu May 15, 2014 12:15 am    Post subject: KVO Reply with quote

ianthehenry.com - If KVO is right, why does it feel so wrong?

"There are enough concepts in those three short lines that it will take
another blog post to do them justice. But I hope that I've piqued your
curiosity enough that you'll go investigate for yourself. How does that
work? Why was it so easy? Why isn't everyone using ReactiveCocoa
all the time? How have I never heard of this before?"
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Sat Feb 24, 2018 3:05 pm    Post subject: Reply with quote

so - Do something on each property change

"Basically you need to call addObserver:forKeyPath:options:context: and
register to be notified when the properties change. When this happens, the
runtime calls the observeValueForKeyPath:ofObject:change:context: method
on the object registered as observer. You can do here the saving you want to
do."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3522
Location: Zagreb

PostPosted: Fri Dec 21, 2018 11:47 am    Post subject: Reply with quote

NSHipster - Key-Value Observing

"Key-Value Observing has the worst API in all of Cocoa. It's awkward,
verbose, and confusing. And worst of all, its terrible API belies one of
the most compelling features of the framework."
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group