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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to