Re: How can I get rid of this warning message?

2013-01-22 Thread Matt Neuburg
@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

Re: How can I get rid of this warning message?

2013-01-22 Thread Rick Aurbach
Thank you for the explanation. I only started learning Objective-C, Cocoa, iOS, etc in August, so I'm still pretty much a newbie and appreciate learning something new. In this particular case, the selector that is the argument to the performSelector: method is a callback selector for NSTimer

Re: How can I get rid of this warning message?

2013-01-22 Thread Charles Srstka
(Resending since I accidentally sent the first one from the wrong e-mail address. Please reply to this one instead of the other to avoid re-posting my private e-mail address to the list, where it will be vulnerable to spambots. Thanks!) On Jan 22, 2013, at 1:38 PM, Rick Aurbach

Re: How can I get rid of this warning message?

2013-01-22 Thread David Duncan
On Jan 22, 2013, at 12:34 PM, Charles Srstka cocoa...@charlessoft.com wrote: int64_t delayInSeconds = 2; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ [foo doSomethingWith:bar]; });

How can I get rid of this warning message?

2013-01-21 Thread Rick Aurbach
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) {

RE: How can I get rid of this warning message?

2013-01-21 Thread Julius Oklamcak
Ok, I agree that the selector is unknown, but we know from the previous line that the target responds to it. So I'd like to prevent this particular warning. I'm sure I ought to know how do do this, but how do I go about removing this warning message? Ideally, I'd like to do this on a file (or

Re: How can I get rid of this warning message?

2013-01-21 Thread Charles Srstka
On Jan 21, 2013, at 2:20 PM, Rick Aurbach r...@aurbach.com wrote: 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. -

Re: How can I get rid of this warning message?

2013-01-21 Thread Greg Parker
On Jan 21, 2013, at 12:20 PM, Rick Aurbach r...@aurbach.com wrote: 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