Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-03 Thread [EMAIL PROTECTED]
I will begin by saying that I figured this out at about 9:30 last night. On Dec 1, 2008, at 7:08 PM, [EMAIL PROTECTED] wrote: // Notifies of change of data in table view. Make sure to reflect changes in datasource. - (void)tableView:(NSTableView *)aTableView setObjectValue: (id)anObject

Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread [EMAIL PROTECTED]
Hey All- I'm working on a Preference Pane for my app (System Preferences plugin) and need to write an array of dictionaries pulled from my NSTableView to defaults. I don't want to serialize it as data since I would like it to be editable from the command line as well (for easy network

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread Steven Riggs
Here's an example of how to do it with no code... http://www.stevenriggs.com/Site/Cocoa_Programming.html Good luck, Steven Riggs On Dec 1, 2008, at 8:08 PM, [EMAIL PROTECTED] wrote: Hey All- I'm working on a Preference Pane for my app (System Preferences plugin) and need to write an

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread [EMAIL PROTECTED]
Thanks Steven- That's a helpful example, but does not work in my example. From my research of Apple's docs, NSUserDefaults, and the SharedDefaultsController can only save defaults to ~/Library/ Preferences and for the app that is running it (in your example case

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread Ken Thomases
On Dec 1, 2008, at 7:08 PM, [EMAIL PROTECTED] wrote: // Notifies of change of data in table view. Make sure to reflect changes in datasource. - (void)tableView:(NSTableView *)aTableView setObjectValue: (id)anObject forTableColumn:(NSTableColumn *)aTableColumn row: (NSInteger)rowIndex {