• 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: Two text fields, one outlet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two text fields, one outlet?


  • Subject: Re: Two text fields, one outlet?
  • From: Klaus Backert <email@hidden>
  • Date: Mon, 5 Apr 2010 10:56:33 +0200


On 5 Apr 2010, at 04:09, Jenny M wrote:

This is the method I ended up going with. I had tried to use bindings
before by doing exactly that - setting up a property, synthesizing it,
and binding the value to the property - but I noticed I was setting
the value wrong. I was calling
  property = [NSNumber...]
rather than
  [self setProperty:[]]. <-- Finally, that worked!!


Setting of properties can and should be done this way (except when using the modern runtime and synthesizing the instance variable):

self.property = ...

which is equivalent to [self setProperty: ...]

Klaus

_______________________________________________

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: Two text fields, one outlet?
      • From: Kyle Sluder <email@hidden>
References: 
 >Two text fields, one outlet? (From: Jenny M <email@hidden>)
 >Re: Two text fields, one outlet? (From: Joanna Carter <email@hidden>)
 >Re: Two text fields, one outlet? (From: Jenny M <email@hidden>)

  • Prev by Date: Punching holes into IKImageView
  • Next by Date: Any frameworks for Leopard's Spaces?
  • Previous by thread: Re: Two text fields, one outlet?
  • Next by thread: Re: Two text fields, one outlet?
  • Index(es):
    • Date
    • Thread