KVO and / vs. Controllers?

Discussion in 'Programmer Misc' started by slashlos, May 29, 2008.

  1. slashlos

    slashlos Guest

    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 Corporation Mobile: 516/446-9902
    ____________________________________________________________________
     
    slashlos, May 29, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Newsbot
    Replies:
    0
    Views:
    532
    Newsbot
    Aug 25, 2011
  2. Newsbot
    Replies:
    0
    Views:
    453
    Newsbot
    Aug 25, 2011
  3. Newsbot
    Replies:
    0
    Views:
    489
    Newsbot
    Aug 26, 2011
  4. Newsbot
    Replies:
    0
    Views:
    542
    Newsbot
    Aug 26, 2011
  5. iTunes controllers

    , Dec 18, 2004, in forum: Apps
    Replies:
    4
    Views:
    194
    Jason Parrish
    Dec 23, 2004
  6. Kevin Smith

    Array Controllers and arrangeObjects: Problem

    Kevin Smith, Dec 2, 2003, in forum: Programmer Help
    Replies:
    0
    Views:
    549
    Kevin Smith
    Dec 2, 2003
  7. slashlos

    KVO and / vs. Controllers?

    slashlos, May 29, 2008, in forum: Programmer Help
    Replies:
    0
    Views:
    189
    slashlos
    May 29, 2008
  8. Rowland McDonnell

    MacMAME and games controllers

    Rowland McDonnell, Feb 4, 2011, in forum: UK Macs
    Replies:
    20
    Views:
    361
    Rowland McDonnell
    Feb 5, 2011
Loading...