• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"remote" binding problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"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


  • Follow-Ups:
    • Re: "remote" binding problem
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Suggest reasons for this crash?
  • Next by Date: Re: Suggest reasons for this crash?
  • Previous by thread: Re: Suggest reasons for this crash?
  • Next by thread: Re: "remote" binding problem
  • Index(es):
    • Date
    • Thread