@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
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
(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
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];
});
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) {
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
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.
-
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