Re: Core Data bindings question

2011-02-07 Thread Jerry Krinock
On 2011 Feb 07, at 16:46, Darren Wheatley wrote: > When I try to bind the enabled property I get the following error: > > "cannot create BOOL from object of class __NSArray0" > > Does anyone have any idea how I can achieve the desired result? Yes, most people get that the first time they try

Core Data bindings question

2011-02-07 Thread Darren Wheatley
Hi, I have a Core Data app that displays data in a tableView with each column bound to a field in a core data entity. One field is called "active", and is of type BOOL I box the BOOL for insertion into the Core Data store using [NSNumber numberWithBool]; In the TableView I would like to bind th

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Yes, that's exactly it. Dual level master detail. For whatever reason, the part I just couldn't see in my head was how to wire up the second NSArrayController to accountsController.selection.items. Thank you so much - just needed that little kick to get to the next step. Appreciate it. On Dec

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Quincey Morris
On Dec 28, 2009, at 16:19, Hunter Hillegas wrote: > I did read this page - but I'm not sure it does what I want because it's only > 2/3rds of my interface. The master-detail explained there works fine for my > items list and to display the selected item's properties but I need the list > of ite

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Hi Quincey, I did read this page - but I'm not sure it does what I want because it's only 2/3rds of my interface. The master-detail explained there works fine for my items list and to display the selected item's properties but I need the list of items (the master in Apple's example) to be the r

Re: To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Quincey Morris
On Dec 28, 2009, at 15:32, Hunter Hillegas wrote: > My question is if I can do this all with bindings. The table of accounts > works fine. What I can't seem to figure out is how to limit the 'Items' in > the second NSTableView to just be the ones associated with the selected > account, using bi

To-Many/To-Many Master/Detail Core Data / Bindings Question

2009-12-28 Thread Hunter Hillegas
Howdy, Trying to crank out a real Cocoa app as an experiment - usually spend my time doing Cocoa Touch. Anyway, I have a pretty simple set of models: Accounts<->>Items I want to setup a screen with a table of accounts. When you click on an account, you see a table of items, click on an item,