call selector @"mySelector"
call selector @"mySelector"
- Subject: call selector @"mySelector"
- From: Aaron Wallis <email@hidden>
- Date: Fri, 30 Sep 2005 23:19:05 +1000
Hi there,
I was wondering how I would go about getting cocoa to call a selector
defined in a string?
for example:
- ( void ) processSomething
{
NSString * mySelector = @"aSelector";
[ self @selector( mySelector ) ];
}
- ( void ) aSelector
{
NSLog ( @"aSelector Executed" );
}
which obviously doesn't work...
I know this is possible, cause we see this style of execution in
objects/functions like NSBeginAlertSheet.
Any pointers guys?
Cheers !
Send instant messages to your online friends http://au.messenger.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden