"remote" binding problem
"remote" binding problem
- Subject: "remote" binding problem
- From: David Hirsch <email@hidden>
- Date: Tue, 06 Oct 2009 19:29:31 -0700
Hello list-
Here is part of my app:
@interface ModeQuizDoc : NSDocument
{
QuizResults *quizResults;
}
@implementation ModeQuizDoc
- (id)init
{
self = [super init];
if (self) {
quizResults = [[[QuizResults alloc] init] retain];
}
}
@interface QuizResults : NSObject {
float currentScore;
}
In Interface Builder, I would like to bind a text field to the current
score. When I set up the text field value's binding to File's
Owner.quizResults.currentScore, the app crashes inside loadNib (inside
NSPopAutoreleasePool). Is that expected behavior? Do I need to set
up the binding programatically? Can I use an NSObjectController to
get around this, as some web search results have implied (but I cannot
make work)?
Thanks,
Dave
_______________________________________________
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