[haiku-3rdparty-dev] Re: Problem sending/receiving app defined msgs

  • From: hudsonco1@xxxxxxx
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Sat, 4 Dec 2010 15:18:57 -0500 (EST)

OK, thanks. How do I get unhandled application-created messages in the 
application to forward to the window?


- Andrew





-----Original Message-----
From: Rene Gollent <anevilyak@xxxxxxxxx>
To: haiku-3rdparty-dev <haiku-3rdparty-dev@xxxxxxxxxxxxx>
Sent: Sat, Dec 4, 2010 10:07 am
Subject: [haiku-3rdparty-dev] Re: Problem sending/receiving app defined msgs


On Sat, Dec 4, 2010 at 2:59 PM,  <hudsonco1@xxxxxxx> wrote:
>               BMessenger *bmsg = new BMessenger(mySig, team_id2, &err);

That code is only going to send the message to the BApplication object
in that team, not to a particular window. You'd have to use scripting
to get a BMessenger back for that window if you intend to send the
message there specifically, or alternatively have the app object
forward it to the window upon receipt.

Regards,

Rene



 

Other related posts: