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, cocoa-dev-requ...@lists.apple.com wrote: > Date: Mon, 21 Jan 2013 15:20:44 -0500 > From: Rick Aurbach <r...@aurbach.com> > To: "cocoa-dev@lists.apple.com" <cocoa-dev@lists.apple.com> > 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 = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com