Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: basic apple events



On 5/7/06 1:23 PM, Yaron Tadmor didst favor us with:

> Is there a difference in the kAEOpenDocuments event between the following
> cases:
> 
> 1)       The app isn't running and the user double-clicks one the app's
> documents.
> 
> 2)       The app is running and the user double-click a document or drags it
> to the dock's icon.

Same event.

> Or is kAEOpenApplication sent in case (1) as well as starting the app by
> double clicking it.

No, they're mutually exclusive. kAEOpenApplication is only sent if the
application is launched without documents to open.
> 
> 
> What I need to do is this. When the app starts I need to perform some
> actions. However, I need to perform them also when the app is launched by
> double clicking a document. I would like these actions to be done after the
> documents are open. What's the best way to do this?

Call the initialization code after you open the documents.

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >basic apple events (From: "Yaron Tadmor" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.