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?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Newsbot
    Replies:
    0
    Views:
    571
    Newsbot
    Aug 25, 2011
  2. Newsbot
    Replies:
    0
    Views:
    509
    Newsbot
    Aug 25, 2011
  3. Newsbot
    Replies:
    0
    Views:
    524
    Newsbot
    Aug 26, 2011
  4. Newsbot
    Replies:
    0
    Views:
    594
    Newsbot
    Aug 26, 2011
  5. iTunes controllers

    , Dec 18, 2004, in forum: Apps
    Replies:
    4
    Views:
    223
    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:
    578
    Kevin Smith
    Dec 2, 2003
  7. slashlos

    KVO and / vs. Controllers?

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

    MacMAME and games controllers

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