NSController Layer Problem
NSController Layer Problem
- Subject: NSController Layer Problem
- From: Hasan Diwan <email@hidden>
- Date: Tue, 27 Apr 2004 12:04:59 -0700
I'm in the process of updating an application I wrote to keep track
of my finances to leverage the new Controller Layer. Things work well,
for the most part. Where it doesn't has me stumped.
Data should be stored in PLIST format in the application defaults. At
the moment, I have tried adding an NSArrayController instance in my
class and using setContent to set the retrieved array from user
defaults. This crashes my program. I've also tried using an
NSUserDefaultsController, which yields "2004-04-27 12:00:32.469
FinanceX[2243] *** -[NSUserDefaults setObject:forKey:]: Attempt to
insert non-property value '<CFArray 0x34ac30 [0xa01900e0]>{type =
mutable-small, count = 1, values = (
0 : <Transaction: 0x318380>
)}' of class 'NSCFArray'" at runtime.
Eventually, I'd like to write a JDBC framework for Objective-C and
storing the data in SQL tables. Thanks for the help; cheers!
Hasan Diwan {
http://ibn.com/~hdiwan}
OpenPGP Fingerprint: 275D 0E84 550C D92A 4A56 732C 8528 2579 E6E9 4842
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.