• 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: Where are the target and action variables?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where are the target and action variables?


  • Subject: Re: Where are the target and action variables?
  • From: "Emanuele \"∞\" Vulcano" <email@hidden>
  • Date: Thu, 30 Aug 2007 20:51:08 +0200


Il giorno 30/ago/07, alle ore 20:45, Frank Bettger ha scritto:

But where are the instance variables target and action?

Directly accessing variables is usually a no-no in Cocoa; not because it's impossible, but because it makes for poor encapsulation (for example, it may be changed by anyone at any time, and you for example would not be able to retain the new value or release the old one).


Virtually all access is done via properties, which are pairs of - someValue/-setSomeValue: methods. Interface Builder should set the action *property*, which means calling -setAction: on the button. (See also the Cocoa docs on Key-Value Coding for more.)

 - ∞_______________________________________________

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: Where are the target and action variables?
      • From: mmalc crawford <email@hidden>
    • Re: Where are the target and action variables?
      • From: "Frank Bettger" <email@hidden>
References: 
 >Where are the target and action variables? (From: "Frank Bettger" <email@hidden>)

  • Prev by Date: Where are the target and action variables?
  • Next by Date: Re: Different methods for setting the delegate?
  • Previous by thread: Where are the target and action variables?
  • Next by thread: Re: Where are the target and action variables?
  • Index(es):
    • Date
    • Thread