Re: (id) sender
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>) |