Re: bindings confusion

2011-09-21 Thread Torsten Curdt
Define doesn't work - if you mean observeValue:forKeyPath:... doesn't get called, Indeed that's what I meant. it's because that's a different relationship from bindings. Just assumptions (I know) but I would think the default implementation does something similar to the code shown in the

bindings confusion

2011-09-20 Thread Torsten Curdt
Before I was following the docs and wrote the bindings clue code myself http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaBindings/Concepts/HowDoBindingsWork.html#//apple_ref/doc/uid/20002373 - (void)bind:(NSString *)binding toObject:(id)theObservedObject

Re: bindings confusion

2011-09-20 Thread Lee Ann Rucker
Define doesn't work - if you mean observeValue:forKeyPath:... doesn't get called, it's because that's a different relationship from bindings. With bindings, a change in one value causes a change in another. With observers, a change in one value causes a call to the observeValue method. On

Re: bindings confusion

2011-09-20 Thread Quincey Morris
On Sep 20, 2011, at 02:13 , Torsten Curdt wrote: Before I was following the docs and wrote the bindings clue code myself http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaBindings/Concepts/HowDoBindingsWork.html#//apple_ref/doc/uid/20002373 -

Bindings confusion

2009-04-28 Thread Simon Raisin
Hi, I'm running into a binding issue is my main application so I wrote a small test app to try to track down the problem: primarily that I cannot get the UI to update appropriately when it is configured to observe my model objects via bindings. // AppDelegate.h @class ModelObject; @interface

Re: Bindings confusion

2009-04-28 Thread Quincey Morris
On Apr 28, 2009, at 06:04, Simon Raisin wrote: I'm running into a binding issue is my main application so I wrote a small test app to try to track down the problem: primarily that I cannot get the UI to update appropriately when it is configured to observe my model objects via bindings.

Core Data, Filtering by PopUps Bindings Confusion

2008-11-14 Thread Brad Gibbs
I've been using Jonathan Dann's excellent Core Data Sorted sample code to create an outline view consisting of two concrete entities -- Categories and Types (each parent Category can have an unlimited number of children types). The only real adjustment I've made to his code is to put the

Re: Core Data, Filtering by PopUps Bindings Confusion

2008-11-14 Thread Quincey Morris
On Nov 14, 2008, at 12:06, Brad Gibbs wrote: I've been using Jonathan Dann's excellent Core Data Sorted sample code to create an outline view consisting of two concrete entities -- Categories and Types (each parent Category can have an unlimited number of children types). The only real

Re: Core Data, Filtering by PopUps Bindings Confusion

2008-11-14 Thread Brad Gibbs
up in the typesPUB. Re: Core Data, Filtering by PopUps Bindings Confusion FROM : Quincey Morris DATE : Fri Nov 14 22:31:26 2008 On Nov 14, 2008, at 12:06, Brad Gibbs wrote: I've been using Jonathan Dann's excellent Core Data Sorted sample code to create an outline view consisting of two

Re: Core Data, Filtering by PopUps Bindings Confusion

2008-11-14 Thread Quincey Morris
On Nov 14, 2008, at 15:21, Brad Gibbs wrote: My categories Popup Button (categoriesPUB) is bound to the categories array controller as follows: Content.arrangedObjects ContentValues.arrangedObjects.displayName I've tried a variety of bindings for the popup button's selectedObject binding,

Re: Core Data, Filtering by PopUps Bindings Confusion

2008-11-14 Thread Steve Steinitz
Hi Brad, I couldn't grasp from a quick skim of your post whether types are related to categories in your model, ie. category -- type. If so, I'd say keep trying to do it with bindings -- it will work. If not, I had a similar scenario where I ended up creating a custom NSArrayController, to