[interfacekit] Re: BApplication (or, OBAppplication)


> >Does anyone have any insight on how to hijack the BLooper's default port
> >for message-receiving in the BApplication class?

> Not hard. The port's name is AppLooperPort. All you have to do is call 
> set_port_owner on the port you intend to steal.

No, I meant the port for general, incoming messages from
wherever.  Looking through the "friend" declarations in BLooper, it looks
like there is a function:

port_id _get_looper_port(const BLooper *);

and a variable:

port_id fMsgPort;

I wonder if BLooper initializes this port during BLooper construction or
on the Run() call?

Isaac


Other related posts: