• 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: (id) sender
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (id) sender


  • Subject: Re: (id) sender
  • From: Scott Stevenson <email@hidden>
  • Date: Fri, 19 Aug 2005 14:25:14 -0700


On Aug 19, 2005, at 10:59 AM, Dan Baker wrote:

This is I am sure a fairly noob question, but I can't find the answer in any of my books or online...what exactly is (id) sender. I am forced to use with whenever i want to interact with a window, a progress bar, etc, but I have no idea what it actually does

The sender variable represents the object that sent the action. For example, if a button is clicked, the sender is the button.


A sender can be any sort of object, so actions tend to just specify Objective-C's generic "id" type.


Now i am trying to launch a window if a certain circumstance is met in my awakefromnib method but its saying sender is unrecognized and I am finally very confused.

Post the code that isn't working.


- Scott

--
http://theocacao.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >(id) sender (From: Dan Baker <email@hidden>)

  • Prev by Date: Re: Dependent Keys
  • Next by Date: Re: Reporting errors from key-value-coding accessors
  • Previous by thread: Re: (id) sender
  • Next by thread: Reporting errors from key-value-coding accessors
  • Index(es):
    • Date
    • Thread