Question on cocoa style: value for (id)sender parameter
Question on cocoa style: value for (id)sender parameter
- Subject: Question on cocoa style: value for (id)sender parameter
- From: Matt Gillette <email@hidden>
- Date: Mon, 24 Jan 2005 12:24:48 -0800
Hi,
I have a question about the difference between these two lines (I've
seen both styles in tutorials):
[aSheet orderOut:NULL];
[aSheet orderOut:self];
Is there any advantage to null/nil versus self? What is the sender
variable used for? I'm not just asking about orderOut, but all cocoa
interface methods that take an (id)sender and seem to do nothing with
it.
Thanks,
Matt
_______________________________________________
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