| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Sep 30, 2005, at 10:07 AM, Jim Correia wrote:
On Sep 30, 2005, at 9:19 AM, Aaron Wallis wrote:
I was wondering how I would go about getting cocoa to call a selector defined in a string?
You don't "call a selector," you send a message.
SEL selector = NSSelectorFromString(@"aSelector");
[object performSelector: selector withObject: nil];
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net Hire me! My resume: http://www.dot-app.org
_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
| References: | |
| >call selector @"mySelector" (From: Aaron Wallis <email@hidden>) | |
| >Re: call selector @"mySelector" (From: Jim Correia <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.