Questions tagged [sender]

sender is the conventional name of an input parameter to an event handler in some object-oriented languages and their frameworks, for example Objective-C and Cocoa, or C# and .NET.

See:

Event Handling in Cocoa

Events (C# Programming Guide)

328 questions
247
votes
6 answers

How can I set the Sender's address in Jenkins?

I'm sending mail from Jenkins to an anonymous SMTP relay internally. That relay then securely sends mail to exchange online via TLS on port 587. The transport works perfectly, the issue is that Microsoft requires the Sender address match the…
CTOMarc
  • 2,509
  • 2
  • 14
  • 4
64
votes
2 answers

What is the use of "object sender" and "EventArgs e" parameters?

In case of Page_Load, Init and other page events, what is the use of these (object sender, EventArgs e) parameters? Examples would be more helpful.
Qasim
  • 681
  • 1
  • 6
  • 6
38
votes
6 answers

Objective C: what is a "(id) sender"?

In some IBAction I saw: - (IBAction)pushButton:(id)sender; This (id)sender when do I use it?
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
35
votes
2 answers

UIButton TouchUpInside Touch Location

So I have a large UIButton, it is a UIButtonTypeCustom, and the button target is called for UIControlEventTouchUpInside. My question is how can I determine where in the UIButton the touch occured. I want this info so I can display a popup from the…
Andrew
  • 3,874
  • 5
  • 39
  • 67
11
votes
1 answer

Get UIButton Text from sender

How can i obtain the text of a UIButton in my -(IBAction)clicked:(id)sender method? Thanks
joec
  • 3,533
  • 10
  • 60
  • 89
8
votes
1 answer

Who called my DBus API in Linux system

The scenario is like this: In a Linux based handheld device I have a C app which has dbus APIs ready to be called by 3rd party apps. The DBus APIs are called during booting time. Is there any system API I can use to in my functions to print the…
tao
  • 251
  • 3
  • 13
7
votes
2 answers

How to send XMPP message when sender is offline?

I am using aSmack and Openfire for my chat application. I am able send and receive message finely. Openfire support offline message transfer when recipient is offline by keeping message until he comes online. But what to do when sender is offline or…
Sushant
  • 1,272
  • 2
  • 15
  • 31
7
votes
4 answers

PyQt4,How to add a batch of widget (QPushButton) at one time and lets them to execute on SLOT

if i want to add 10 QPushButton at one time: NumCount=20 for i in range(NumCount): btn=QPushButton("%s %s" %("Button" i+1),self) btn.clicked.connect(self.btnclick) def btnclick(self): # here is my question # how to define which button…
user255606
7
votes
3 answers

VB.NET What is Sender used for?

I'm confused as to the purpose of the sender parameter in Winform controls, for example: Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load End Sub I understand i can verify what sender holds by doing…
Dayan
  • 7,634
  • 11
  • 49
  • 76
6
votes
1 answer

Creation of Webhooks for a asp.net core 2.1? Does is support it?

Is it possible to create custom webhooks in asp.net core 2.1 as a sender? I have seen there is som implemented libraries for receiving webhooks. But I can't find anything for when you want to be the sender. I only have some basic knowledge about…
user3690572
  • 69
  • 1
  • 8
6
votes
1 answer

JavaMail API, Gmail-Auth and setFrom

for this app i'm following this example: http://pipoltek.blogspot.com/2008/02/sending-mail-using-gmail-smtp-server.html I can send emails, it looks good.....but i want to modify the sender email using this: MimeMessage msg = new…
cupakob
  • 8,411
  • 24
  • 67
  • 76
6
votes
1 answer

Delphi 7:Attach Image to Mouse

I want a derivate of TImage follow the Cursor when it has been clicked and stop following when it gets clicked again. For this, I created a pointer, named 'Attached', that points to a TImage or a derivate. var Attached: ^TImage; I also set the…
restcoser
  • 63
  • 3
6
votes
7 answers

How to use "Sender" parameter with "As" operator for more then one class at a time?

In Delphi, sometimes we need to do this... function TForm1.EDIT_Click(Sender: TObject); begin (Sender As TEdit).Text := ''; end; ...but sometimes we need to repeat the function with other object class like... function…
NaN
  • 8,596
  • 20
  • 79
  • 153
5
votes
1 answer

Is there a way to find/read the Sender Email Address using R, RDCOMClient

library("tm") library("NLP") library("dplyr") library("readtext") library("readxl") library("foreach") library("devtools") library("RDCOMClient") library("rlist") WDF = vector() OutApp <- COMCreate("Outlook.Application") outlookNameSpace =…
Parth Kalra
  • 127
  • 1
  • 1
  • 10
5
votes
5 answers

accessing UIButton by (id)sender

I have the following code -(IBAction)ATapped:(id)sender{ //want some way to hide the button which is tapped self.hidden = YES; } Which is linked to multiple buttons. I want to hide the button which triggered this IBAction. self.hidden is obviously…
some_id
  • 29,466
  • 62
  • 182
  • 304
1
2 3
21 22