• 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 23:28:40 +0200


On 5 Apr 2010, at 22:40, Kyle Sluder wrote:

On Mon, Apr 5, 2010 at 1:56 AM, Klaus Backert <email@hidden > wrote:
Setting of properties can and should be done this way (except when using the
modern runtime and synthesizing the instance variable):

There's nothing different about synthesizing the instance variable.

If you want the property semantics, use either dot syntax (foo.bar =
baz) or message syntax ([foo setBar:baz]). They are defined to be
exactly equivalent. Again, you can use whichever you like.

If you want the direct ivar access semantics (for example, in -init
and -dealloc), but you've synthesized the ivar, you can use pointer
dereference through self to get at it (self->bar = baz).

Both semantics are necessary. It's important to understand the
difference between them.

Older compilers don't support pointer dereference for synthesized
ivars. This is a bug, and you should upgrade your development tools.

--Kyle Sluder

Yes, I know. My statement above has a different background, among other things a documentation bug (somebody told me off list about it), and, sigh, my incomplete ablity of expressing myself in a foreign language.


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


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>)
 >Re: Two text fields, one outlet? (From: Klaus Backert <email@hidden>)
 >Re: Two text fields, one outlet? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: UpdateSystemActivity replacement in Cocoa?
  • Next by Date: Problems with repetetive execution of netstat using NSTask and NSTimer
  • Previous by thread: Re: Two text fields, one outlet?
  • Next by thread: file path question
  • Index(es):
    • Date
    • Thread