On Mar 16, 2006, at 3:36 PM, [EMAIL PROTECTED] wrote:


//////from 10/25/05

RB Users Guide :
"When the user launches your application ... You can call the NewDocument
event handler by entering NewDocument in your code. ....."
Dick Aufman wrote :
Yes, but where is the code entered and what type of code goes there.
Joe Strout responded :
Hmm, I haven't a clue what this is trying to get at. The NewDocument and OpenDocument event handlers are automatically invoked when appropriate; you don't
call them yourself.

/////

When the user clicks on my app's data file, how does my data file know to
start my application, and what code starts it?

Under MacOS, the Finder uses Launch Services to determine the application to open the document. It then launches the app and sends the app an 'odoc' Apple event. The REALbasic framework handles the 'odoc' event by calling the Application.OpenDocument event handler.

--------------
Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to