Relation between Document based apps and Array Controllers in IB
Relation between Document based apps and Array Controllers in IB
- Subject: Relation between Document based apps and Array Controllers in IB
- From: donbarvazo <email@hidden>
- Date: Fri, 6 Feb 2009 22:40:16 +0200
Hi,
I have been spending the last couple of days trying to figure out if
there is a relation between the Document based application in Cocoa
and the ability to bind Array Controllers to the AppController.
Here goes:
Document Based app = works fine
1. I have created a Cocoa Document Based Application
2. Added an NSMutableArray member (persons)
3. Added a model class (person) with some properties
4. In IB : added an Array Controller, and fixed its binding to the
File's Owner content and all the UI elements
5. I run the app - and everything works as I expect.
Cocoa Application = Does not work
Did the same as above. It does not work, and I get the error :
"reason: '[<NSApplication 0x114720> valueForUndefinedKey:]: this class
is not key value coding-compliant for the key persons"
Can anyone please explain:
A. Can this be done with non-document app
B. What is the difference between the two kinds of app in relation to
binding Array Controllers.
Many Thanks,
D.
_______________________________________________
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