• 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
Re: Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings


  • Subject: Re: Bindings
  • From: Martin van-Eerde <email@hidden>
  • Date: Sat, 10 Feb 2007 10:39:37 +0000


Seth,

I am a bindings cocoa newb as well, are you using CoreData? I think I had the same sort of problem, in that the table would not refresh for items that I had added. If you are using CoreData [managedObjectContext processPendingChanges] should bring the view and model back into sync.


Martin

On 10 Feb 2007, at 06:21, email@hidden wrote:


In the bindings approach, I kinda did this a little funny. Since in the nib there is no FileTypesManager object, I added a -fileTypes method in FileTypesPreferences which calls FileTypesManager's fileTypes method. I then set up an array controller to the -fileTypes array in FileTypesPreferences. When adding an object I would show the sheet, create the object, set its values, and ...... call addObject: on the controller? Do I have to? I need to feed it through the same code in addFileType because there are things I need to do when the object needs to be added. Is saw one bindings example use a bunch of methods, such as:


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: unsigned long long + id = ???
  • Next by Date: Re: Is a textfieldcell truncating?
  • Previous by thread: Re: Scenarios I don't know how to use Bindings in
  • Next by thread: how to terminate the application?
  • Index(es):
    • Date
    • Thread