Re: How can I get rid of this warning message?
Re: How can I get rid of this warning message?
- Subject: Re: How can I get rid of this warning message?
- From: Matt Neuburg <email@hidden>
- Date: Tue, 22 Jan 2013 07:44:52 -0800
Well discussed here:
http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown
m.
On Jan 22, 2013, at 1:29 AM, email@hidden wrote:
> Date: Mon, 21 Jan 2013 15:20:44 -0500
> From: Rick Aurbach <email@hidden>
> To: "email@hidden" <email@hidden>
> Subject: How can I get rid of this warning message?
> I am attempting to use the RTPTimer wrapper that Gordon Apple contributed to this list. (Thanks, Gordon!)
>
> It appears to work great, but I find that the class's executeSelector: method generates a warning message.
>
>> - (void) executeSelector:(NSTimer*)timer {
>> if(self.target != nil) {
>> if([self.target respondsToSelector:self.sel])
>> [self.target performSelector:self.sel withObject:self];
>> }
>> else
>> [self invalidate];
>> }
>
> where sel is defined as @property(nonatomic) SEL sel;
>
> The line containing the performSelector:withObject: method generates
> "PerformSelector may cause a leak because its selector is unknown".
--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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