Bindings created reference objects
Bindings created reference objects
- Subject: Bindings created reference objects
- From: Dustin Robert Kick <email@hidden>
- Date: Sun, 10 Aug 2008 21:17:23 -0500
I have a program I'm developing where there will be one list, shown in
an NSTableView that has source objects, and a second list that
contains counted reference objects from the first list, also shown in
an NSTableView, and you add objects by selecting in the first list,
and clicking a button that adds (or increments the count of) the
objects from the first to the second.
Ok, so I've solved how to do this without bindings, I've created a
supercontroller to handle two NSArrayControllers, with the required
IBAction to send the selected data in the first to the second, after
processing. Is there a way to do this without a custom class? I'm
thinking there might be with NSButton's bindings for Argument,
somehow, but I'm wondering if it'll be a fruitless search, since I
don't know how/if such things can be passed to the creation of a Core
Data Entity through the add: action without the same or more work than
I've already done, or if it would be worth it. Seems like I could
just override add: to take the Argument bound by the button, and use
addObjects: or whatever lower level function add: uses, to create
relationships in the a new entity from the buttons Argument binding.
Anyway, just wondering if anyone has thoughts on this line.
Dustin
KC9MEL
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden