Re: polling in the run loop
Re: polling in the run loop
- Subject: Re: polling in the run loop
- From: Shawn Erickson <email@hidden>
- Date: Sun, 20 Aug 2006 08:48:17 -0700
On Aug 20, 2006, at 8:43 AM, stephen joseph butler wrote:
2006/8/20, stephen joseph butler <email@hidden>:
I'm writing a framework around a C library and I have a function that
provides data. I'd like to poll this function and then use the
delegate model to deliver the data. Is it a wise idea to poll each
time through the run loop? For example, my code looks like this:
- (void) startPoll {
[[NSRunLoop currentRunLoop]
performSelector:@selector(poll:)
target:self
argument:nil
order:0
modes:[NSArray arrayWithObject:NSDefaultRunLoopMode]];
}
Never mind. I just figured out that the run loop doesn't work this
way. Hrmm... back to the drawing board.
What are you trying to achieve exactly?
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden