I have a question, why are you using that method (connectionWithReceivePort: sendPort:) to build the connection and why are you using the same port object? The correct way (at least according to what I've read from Apple documentation...and example code in gnu-base) is to use the method +connectionWithName:. That one takes care of creating the port objects and hooking up the NSConnection object to the current thread's runloop. Then, you assign the object to it with -setRootObject:. Finally, you start up the default runloop exactly as you do in that example. The point is, unless you REALLY, REALLY, REALLY have to, you can safely ignore the lower level details like as the port objects and such. hope that helps ;-)
On Tue, Apr 17, 2012 at 10:39 PM, Ma Xiaoming <[email protected]> wrote: > Hi Riccardo, > > Many thanks for your help. > > Best regards, > > Xiaoming > > > > > _______________________________________________ > Discuss-gnustep mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnustep -- Besos, abrazos, confeti y aplausos. Jamie Ramone "El Vikingo" _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
