Re: polling in the run loop
Re: polling in the run loop
- Subject: Re: polling in the run loop
- From: "stephen joseph butler" <email@hidden>
- Date: Sun, 20 Aug 2006 10:43:04 -0500
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.
_______________________________________________
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