Observing NSBrowser

  • Is there a way to observe an NSBrowser and be notified when the
    selected column changes without setting the delegate?  I've bound an
    NSBrowser to an NSTreeController, so I can't use a delegate.

    Thanks,
    -Adam
  • on 1/8/08 7:14 PM, <adam.thorsen...> purportedly said:

    > Is there a way to observe an NSBrowser and be notified when the
    > selected column changes without setting the delegate?  I've bound an
    > NSBrowser to an NSTreeController, so I can't use a delegate.

    Now, why is it that you can't set the delegate? You should be able to use
    bindings *and* datasource methods at the same time, so if that's your
    concern, you shouldn't have a problem.

    Best,

    Keary Suska
    Esoteritech, Inc.
    "Demystifying technology for your home or business"
  • > Is there a way to observe an NSBrowser and be notified when the
    > selected column changes without setting the delegate?  I've bound an
    > NSBrowser to an NSTreeController, so I can't use a delegate.

    If you set the delegate after binding the browser, you can use the
    standard selection delegate method without implementing the data
    source methods.

    That being said, you may instead want to take a look at the
    NSTreeController’s selectionIndexPaths property.

    -Ben
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today