Amazon.com Widgets selectors
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 16, 2014, 02:52:01 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Chapter Study
| | |-+ Chapter 9 - Polymorphism, Dynamic Typing, and Dynamic Binding
| | | |-+ selectors
Pages: [1] Go Down
Print
Author Topic: selectors (Read 706 times)
scokar
Newbie
*
Posts: 10






on: February 07, 2011, 04:33:25 PM

Is it possible to set the value of a selector at run time?

"pseudocode:"

Code: (Objective-C)
(void) performRandomAction: (id) myObject andmethod: (id) myMethod
{
SEL action;
action=@selector(myMethod)

[myObject performSelector: action];
}


This will not work since "@selector" is compile time only.

Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.