-2

Possible Duplicate:
What actually is a @selector?

What does the following statement do?

SEL selMethod = @selector(function_name:);

(where, type of SEL is objc_selector.)
Any guess?

Community
  • 1
  • 1
viral
  • 4,168
  • 5
  • 43
  • 68
  • See also: [What's the difference between a method and a selector?](http://stackoverflow.com/q/5608476/557219) –  Aug 16 '11 at 06:09
  • See also: [What actually is a @selector?](http://stackoverflow.com/q/3482344/557219) –  Aug 16 '11 at 06:09

1 Answers1

2

Read up on Selectors. They are used alot when you need to refer to class methods. For example, when dynamically deciding what to call at runtime.

drekka
  • 20,957
  • 14
  • 79
  • 135