• 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: Problem with bindings to user defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with bindings to user defaults


  • Subject: Re: Problem with bindings to user defaults
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 26 Apr 2008 20:52:44 -0700


On 2008 Apr, 26, at 19:32, Bob Smith wrote:

Am I doing something wrong when setting up the bindings? Is there some other way to edit a list of values without using a table? Is this just a limitation in bindings to a table? I've been through the docs and examples but never found any clues. I've run into this a couple of times now, and always just ended up building a temporary model of "wrapper" objects for the table binding, with controller code to move values in and out of user defaults. Not really a lot of code to write, but it seems like this should be a no-code- required task. I suspect I am missing something really obvious, but I'm quite happy to feel dumb if someone can point out my error.

I've had a problem where, when you click the "add" button, it "attempts to insert nil into an array". I solved it using a "wrapper" objects as you did, although I may have had another reason to do that, because my table has two columns, the second column indicating whether or not the string ends in a trailing space which, unfortunately, is significant in my application. Anyhow, in the wrapper class -init method I set the string to "untitled" and that solved the problem.


I can post a about 200 lines of code and tell you where to get the nib if you want, but probably you don't because of the additional complications in my project.

_______________________________________________

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


References: 
 >Problem with bindings to user defaults (From: Bob Smith <email@hidden>)

  • Prev by Date: Re: NSLog() replacement for debugger output
  • Next by Date: Re: How to import drawing paths into a Cocoa application?
  • Previous by thread: Problem with bindings to user defaults
  • Next by thread: Getting selected object in NSView-subclass in NSCollectionView
  • Index(es):
    • Date
    • Thread