• 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
Question on cocoa style: value for (id)sender parameter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Question on cocoa style: value for (id)sender parameter
      • From: Larry Fransson <email@hidden>
    • Re: Question on cocoa style: value for (id)sender parameter
      • From: Shawn Erickson <email@hidden>
    • Re: Question on cocoa style: value for (id)sender parameter
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Suppression of bounds expansion upon call to scaleUnitSquareToSize
  • Next by Date: Re: Question on cocoa style: value for (id)sender parameter
  • Previous by thread: Suppression of bounds expansion upon call to scaleUnitSquareToSize
  • Next by thread: Re: Question on cocoa style: value for (id)sender parameter
  • Index(es):
    • Date
    • Thread