Re: Cocoa and dead-code stripping
Re: Cocoa and dead-code stripping
- Subject: Re: Cocoa and dead-code stripping
- From: Wade Tregaskis <email@hidden>
- Date: Mon, 2 Jul 2007 20:28:42 -0700
The way this would work is to have the development tools scan all
message selector references (and class literal references) and
strip all methods and classes that aren't referenced. This process
would repeat until the tool can no longer perform any more stripping.
O rly?
.h
IBOutlet id myTextField;
.m
NSString *selectorName = [myTextField stringValue];
SEL newSelector = NSSelectorFromString(selectorName);
[myObject performSelector:newSelector];
Wade
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden