OpenDocument does have the parameter, 'item as folderitem' And you're right about NewDocument. I've always called it explicitly in the few document based apps I've created, but it seems there is no need.
- Tom On 20/03/2007, at 4:58 AM, Arnaud Nicolet wrote: > Le 15 mars 07 à 21:29 Soir, Tom Benson a écrit: > >> The App.OpenDocument event will fire if the application is launched >> by either of the following methods >> >> 1) a user double clicks a document in the Finder/Explorer, and you >> app is the designated editor >> 2) a user drags and drops a file onto you apps icon >> >> So, I'd put this code in the App.OpenDocument event >> >> if item <> nil then >> //show this document >> else >> App.NewDocument //and put code to handle createing the default >> docuemtn inside the App.NewDocuemnt event handler >> end > > If item is nil (so no document has been dropped or double-clicked), > then the OpenDocument event won't fire (instead, the NewDocument will > fire automatically). > > Also, there is no Item parameter in the Open event (in case you > misspelled). > > I am missing something in recent versions? > _______________________________________________ > Unsubscribe or switch delivery mode: > <http://www.realsoftware.com/support/listmanager/> > > Search the archives: > <http://support.realsoftware.com/listarchives/lists.html> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
