Re: Core data, bindings and multiple view NIB

2009-05-28 Thread Tomaž Kragelj
Ok, I see. The main thing is that now it works and I can setup the bindings in IB instead of programatically which is another bonus... Thanks for all the information, Tom On 28.5.2009, at 16:23, Keary Suska wrote: On May 27, 2009, at 10:07 PM, Tomaž Kragelj wrote: Thanks Keary, this works

Re: Core data, bindings and multiple view NIB

2009-05-27 Thread Tomaž Kragelj
How are you binding the item array controller? It has to be bound to the group list array controller or to a property of the app delegate that depends on its selection. In MainMenu.nib the two array controllers are bound: GroupsController: - managed object context -

Re: Core data, bindings and multiple view NIB

2009-05-27 Thread Tomaž Kragelj
the slave controllers in particular view nib file to the values from the corresponding master controller. Is that possible, or is it not how bindings should be used? Tom On 27.5.2009, at 22:43, Keary Suska wrote: On May 27, 2009, at 12:30 AM, Tomaž Kragelj wrote: GroupItemsController: - managed

Core data, bindings and multiple view NIBs

2009-05-26 Thread Tomaž Kragelj
Hi all I'm (again) banging my head with a single window, multiple views app using core data. Each of my view is implemented within it's own NIB and handled by a NSViewController subclass. The views share the same data from the same MOC. Using the following core data model I cannot bind

Re: Custom view controller

2008-11-05 Thread Tomaž Kragelj
Hi Raphael and Cathy - thanks both for your replies. I already implemented top-level objects relasing, that was simple (although the objects are not released because dealloc is not called...) - in fact my code is almoust identical to the one shown below. On the other hand I do bind an

Re: Custom view controller

2008-11-05 Thread Tomaž Kragelj
I haven't though of this. I solved the issue though, through Cathy's proposal, by adding removeObservations method to my view controller base class and call it from my NSWindowController implementation. Now the dealloc is called as expected. In one of my nibs I do use the file's owner as a

Core data, NSArrayController and different nibs

2008-11-05 Thread Tomaž Kragelj
It looked so trivial at the start, but didn't work as expected - my single window application uses the following setup: - MainMenu.nib: my AppController and all the NSArrayControllers with bindings set properly so when an item is selected in the master controller, it's details are handled

Custom view controller

2008-11-04 Thread Tomaž Kragelj
Hello My application should be tiger compatible, so I can't use NSViewController. I created a custom view controller class with similar interface albeit much simpler. However I am not sure about the following (taken from NSViewController documentation): ...taking the same care to prevent

Core data fetch returns no objects

2008-09-18 Thread Tomaž Kragelj
Hi all - I need some help with core data fetching... I have 1:N relationship between Project and Measurement entities. I add all objects to managed context programatically using + [NSEntityDescription insertNewObjectForEntityForName:inManagedObjectContext]. First I add Project object,

Re: Core data grand-children list

2008-09-17 Thread Tomaž Kragelj
Hi, thanks for suggestion - definitely worth remembering it. Yesterday evening I was playing a bit more with array controllers and I figured it out - I use intermediate array controller for sessions and bindings like this: ProjectArrayController: no binding, just setting the mode to entity

Core data grand-children list

2008-09-16 Thread Tomaž Kragelj
I have the following core data model: Project Session Measurement On my form I want the user to select the desired project from the table and then based on that selection, I want to display all measurements (for all sessions) for that project. I have two array controllers - one