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
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 -
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
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, then
Thanks for pointing this out. I use fetch request to get the data, so
I thought this should work. Digging even further I realized my
predicate relies on a transient attribute. So I had to rearrange the
model and now the fetching works.
Interestingly - array controllers (seem to?) work corre
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
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 NSArr
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
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 b
On 6.11.2008, at 11:45, Cathy Shive wrote:
On Nov 6, 2008, at 8:50 AM, Tomaž Kragelj wrote:
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
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 th
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 -> AppController.managedO
n bind 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:
13 matches
Mail list logo