[interfacekit] Re: BHandler::fToken

On Thu, 13 Mar 2003, DarkWyrm wrote:

> However, if you would like to make all BWindow and BView tokens the same as
> their BHandler tokens, I have no problem with that. It'll require a couple
> changes, but nothing significant - one more attachment on BWindow side and
> one less on app_server side, which brings us back to your original question -
>  accessing BHandler::fToken. Seeing how BWindow is a BLooper friend and
> BLooper is a BHandler friend, couldn't we just implement a BLooper::GetToken
> private function and not break BC? The server doesn't care what actual value
> is used as long as it's unique. This would avoid everyone and their brother
> being a BHandler friend class and we could still access the necessary tokens
> when we need them. Erik?

I hope, Erik will forgive me, if I answer. ;-)

In BHandler there's already:

  friend inline int32 _get_object_token_(const BHandler* );

The implementation in src/kits/app/Messenger.cpp could be moved to
headers/private/app/AppMisc.h to be available for everyone.

CU, Ingo

Other related posts: