Welcome, Guest. Please login or register.
Did you miss your activation email?
April 26, 2017, 12:42:34 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
Author Topic: selectors (Read 1344 times)
Posts: 10

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

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


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

[myObject performSelector: action];

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

Pages: [1] Go Up
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.