Ello,

I've got a plugin that does some TCP/IP communication via NSStream. Problem is: apparently, when I'm in the delegate method stream:handleEvent:, I can't access my plugin's ports -- only when I read/write them inside the plugin's -execute method I get the desired results (available/updated values for input/output ports). What's a solution for that problem? I don't have a separate thread, I schedule the streams in the run loop associated with -execute's caller and then do

    NSRunLoop *loop = [NSRunLoop currentRunLoop];
    [loop runUntilDate:[NSDate distantPast]];

inside -execute as well. Spawning another thread for the thread handling didn't help. Do I have to resort to helper ivars which I read/write in the stream delegate and the execute method? Other solutions?

Cheers,
Anatol
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to