• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bindings created reference objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Core Data versioning woes
  • Next by Date: Re: Core Data versioning woes
  • Previous by thread: Re: Get specified window from nib
  • Next by thread: handling errors from NSNumberFormatter - how to determine exact nature of the error?
  • Index(es):
    • Date
    • Thread