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

Re: Properties and bindings


  • Subject: Re: Properties and bindings
  • From: "D.K. Johnston" <email@hidden>
  • Date: Mon, 22 Sep 2008 20:44:29 -0700

Thanks for the explanations: it does make some kind of sense now.

The reason I was looking at both forms is that I want the myInt property to be read-only, but I want the MyObject instance to be able to set it. If I do this:

	@property(readonly) NSInteger myInt;

I can't do this in MyObject:

	self.myInt = 123;

without generating a compiler error. And as you've all explained, I can't do this either:

	myInt = 123;

because the textfield value won't be changed. Is Jason's suggestion the best way to get around this problem?

_______________________________________________

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: "Shawn Erickson" <email@hidden>
    • Re: Properties and bindings
      • From: Andrew Merenbach <email@hidden>
    • Re: Properties and bindings
      • From: Roland King <email@hidden>
    • Re: Properties and bindings
      • From: Jason Coco <email@hidden>
References: 
 >Properties and bindings (From: "D.K. Johnston" <email@hidden>)
 >Re: Properties and bindings (From: Jason Coco <email@hidden>)

  • Prev by Date: Saving an annotated PDF to a flat image
  • Next by Date: Unable to launch about panel for the 2nd time
  • Previous by thread: Re: Properties and bindings
  • Next by thread: Re: Properties and bindings
  • Index(es):
    • Date
    • Thread