• 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
Listening to bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Listening to bindings


  • Subject: Listening to bindings
  • From: <email@hidden>
  • Date: Fri, 18 Feb 2005 10:46:06 +0000

Sorry, that was the best subject I could think of.  In a project I'm working on, I'm going to need to kind of "listen" to the bindings I have (two NSArrayControllers working much like mmalc's ToDos example).  But I'll also be using SQLite with this project to store the information in the tables in a database format.  So when a user clicks my remove button, the binding will remove the object from my array as well as update the interface, but I'm also going to need to know which object is being removed so I can remove it in the database as well.  This would also go for adding, inserting, and updating anything in my table, I need to know about it so I can make the same adjustments in my database.

Are there notifications I can listen for as they relate to my array?  So when the user removes something from the interface, the binding will remove it from the array which will fire a notification that something is being adjusted, I can find out which one and remove it.  Can this be done?  Or should I do it the old way with all the glue code?

I would have searched in Cocoabuilder.com, but I wasn't even sure how to name the subject of this, let alone search for it.  If there is a previous post about this, feel free to let me know.

mmalc, I've looked through the examples on your site and I didn't see anything relevant, but again, I could have missed it.  Thanks.

James

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Listening to bindings
      • From: Guy English <email@hidden>
  • Prev by Date: Re: passing parameters to an AppleScript from Objective-C
  • Next by Date: First cell in NSTableView not holding data
  • Previous by thread: NSView and NSText in command non-GUI app
  • Next by thread: Re: Listening to bindings
  • Index(es):
    • Date
    • Thread