Changeset 192 for trunk/beos


Ignore:
Timestamp:
Apr 4, 2006, 8:03:57 AM (16 years ago)
Author:
titer
Message:

Handle B_ARGV_RECEIVED messages, apparently needed for browser (and
command line) interaction.

Patch by Alan Westbrook.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/beos/TRApplication.cpp

    r14 r192  
    201201                }
    202202        }
     203}
     204
     205/**
     206 * Needed for browsers or command line interaction
     207 */
     208void TRApplication::ArgvReceived(int32 _argc, char** _argv)
     209{
     210        entry_ref ref;
     211        BMessage refs(B_REFS_RECEIVED);
     212        for( int32 i = 0; i < _argc; ++i )
     213        {
     214                if( B_OK == get_ref_for_path(_argv[i], &ref) )
     215                {
     216                        refs.AddRef("refs", &ref);
     217                }
     218        }
     219       
     220        be_app_messenger.SendMessage(refs);
    203221}
    204222
Note: See TracChangeset for help on using the changeset viewer.