Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Ah ok.. Thanks a lot once again.. very helpful. On Dec 17, 2009, at 9:32 PM, Quincey Morris wrote: > On Dec 17, 2009, at 12:24, Gustavo Pizano wrote: > >> I was checking the documentation, just in case, Im not saying I will do it >> this way, but jsut to keep it in mind... Subclassing NSArra

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 12:24, Gustavo Pizano wrote: > I was checking the documentation, just in case, Im not saying I will do it > this way, but jsut to keep it in mind... Subclassing NSArrayController, and > overriding add: method, I can get the entityName form the NSObjectController > (Parent o

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Y On Dec 17, 2009, at 9:10 PM, Quincey Morris wrote: > On Dec 17, 2009, at 11:58, Gustavo Pizano wrote: > >> In IB, I have 2 NSArrayControllers, one for the NSTableView that will add >> Items (ItemXInvoice) without prefetching, and one that will display a drop >> down button with the descriptio

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 11:58, Gustavo Pizano wrote: > In IB, I have 2 NSArrayControllers, one for the NSTableView that will add > Items (ItemXInvoice) without prefetching, and one that will display a drop > down button with the description of the existing Items (prefetching the > existing ones), s

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Sorry I didn't read the whole mail. > > You may want to keep thinking about the interface, though. What if you want > to add an item (ItemXInvoice) to *this* invoice based on an Item that's in a > different invoice (and hence not displayed)? Seems to me the hard part here > is designing the in

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Yeah I mean, the "Use Selected Item" button will be bound to a IBAction which will create a new NSEntityDescription of ItemXInvoice and then relate it to the Selected ITem.. now I have its a doubt about the awakeFromInsert overridden method in the ItemXInvoice ... this wil give me trouble if I w

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 11:07, Gustavo Pizano wrote: > In fact what I want is to allow the user to, create new Items, and use > Exiting ones, in any case a new ItemXInvoice must be created somehose,...For > the second option I had in mind, that once I select an exiting Item, then I > click an "Use

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Quincey thanks for the reply. In fact what I want is to allow the user to, create new Items, and use Exiting ones, in any case a new ItemXInvoice must be created somehose,...For the second option I had in mind, that once I select an exiting Item, then I click an "Use selected" button, this one

Re: Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Quincey Morris
On Dec 17, 2009, at 09:39, Gustavo Pizano wrote: > I have the follow entities and relations: Invoice< >> ItemXInvoice<< > Item.. > The Entity ItemXInvoice has attributes quantity and totalItemPrice, and the > Item has, descr (description) and unitPrice. > > An Instance of NSArrayController for

Overriding NSArrayController to be used in a many-to-many RS and NSTable Bindings

2009-12-17 Thread Gustavo Pizano
Hello all. I have a situation. :S. I have the follow entities and relations: Invoice< >> ItemXInvoice<< > Item.. The Entity ItemXInvoice has attributes quantity and totalItemPrice, and the Item has, descr (description) and unitPrice. An Instance of NSArrayController for the entity ItemXInvoice