call selector @"mySelector"
- Subject: call selector @"mySelector"
- From: Aaron Wallis <email@hidden>
- Date: Fri, 30 Sep 2005 23:19:05 +1000
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:Mime-Version:Content-Transfer-Encoding:Message-Id:Content-Type:To:From:Subject:Date:X-Mailer; b=XQyQ8kmywnUZMgxTQxemRXFAnlbQeY/pbl19xjzokDoj/NVhUSXGBLEfWVM4Ads7myfyg7U062lBibGK12jY74EMccVr98nMJmegx08442AO7VMGHBLU5hQ1V2VcLY9/RIlclT07VhOZLOzt3u1kDx0nWxZICkAW26vaclsm1vo= ;
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
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.