Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
May 21, 2018, 09:58:14 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
Author Topic: selectors  (Read 1509 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:  

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 ゥ 2009 All rights reserved.