• 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
Table Data and NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Table Data and NSArrayController


  • Subject: Table Data and NSArrayController
  • From: email@hidden
  • Date: Tue, 23 Dec 2003 17:21:10 -0500

I have a table whose data is gotten from an NSArrayController. The NSArrayController gets its arranged data from the default user preferences controller, which finds an array of strings. This works perfectly, as the table shows the list of strings stored in the preferences plist. However, when I try to edit the string in the table, my changes take absolutely no effect, and the data reverts to what was retrieved from the plist at first. I even tried changing the preference file during execution, but those changes were overwritten, so the preferences are not being updated. More strangely, I can add other entries by means of a button whose target is the add: method of the NSArrayController, but I can only add entries without content. That is, empty entries are added to the table and to the preferences file, but then I have the same problem with editing those new entries as I did with the first entries. In short, how can I make this work? How can I have a table to which you can entries and have them written to file via the controllers and so on. Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Table Data and NSArrayController
      • From: Scott Anguish <email@hidden>
  • Prev by Date: How to NOT have an application added to the finders recent items list when launched from NSWorkspace.
  • Next by Date: Re: Database Application with Obj-C
  • Previous by thread: How to NOT have an application added to the finders recent items list when launched from NSWorkspace.
  • Next by thread: Re: Table Data and NSArrayController
  • Index(es):
    • Date
    • Thread