• 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
Properties and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Properties and bindings


  • Subject: Properties and bindings
  • From: "D.K. Johnston" <email@hidden>
  • Date: Mon, 22 Sep 2008 18:35:00 -0700

I'm trying to learn how to use bindings. MyObject has an NSInteger myInt. I used @property and @synthesize to make myInt into a property. In IB I bound an NSTextField to the myInt property. Now when I do this:

	self.myInt = 123;

when initialising MyObject, the value shows up in the text field. But if I do this instead:

	myInt = 123;

the textfield just shows '0'. What's happening here?

dkj
_______________________________________________

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: Properties and bindings
      • From: "D.K. Johnston" <email@hidden>
    • Re: Properties and bindings
      • From: Jason Coco <email@hidden>
    • Re: Properties and bindings
      • From: Roland King <email@hidden>
    • Re: Properties and bindings
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: [Moderator] Re: Developer needed
  • Next by Date: NSURLDownload resumeData always nil
  • Previous by thread: Re: [Q] Custom NSFormatter and IB's Cocoa Simulator
  • Next by thread: Re: Properties and bindings
  • Index(es):
    • Date
    • Thread