Talk About Network

Google





Mac > Mac Programmer > KVO and / vs. ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1007 of 1043
Post > Topic >>

KVO and / vs. Controllers?

by slashlos <slashlos@[EMAIL PROTECTED] > May 29, 2008 at 01:57 PM

I had embarked on migrating to key value observing to reduce code and 
has gone well but I'm thinking I missed something.

I had coded a sample class, its KVC methods, and created a model for it 
in IB. The window there has a controller in which I made the window its 
delegate so that upon close it'd write out what it had. The KVO 
observings I'd added to the controller's awakeFromNib and removed them 
at the windowShouldClose delegate. I had all working fine when it dawned 
on me I should invest instead into using an object controller.

Rather than coding KVO observing and unobserving, could / should you 
instead use an object controller connected to the model of that object? 
The attributes do need to be added in the object controller but it would 
save a bunch of code.
-- 
/los  "I was a teenage net-random."

____________________________________________________________________
Carlos D. Santiago                              Phone: 516/447-7368
Oracle Cor****ation                             Mobile: 516/446-9902
____________________________________________________________________
 




 1 Posts in Topic:
KVO and / vs. Controllers?
slashlos <slashlos@[EM  2008-05-29 13:57:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 18:49:19 PST 2009.