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: Cocoa Application Architecture - Think More About AppleEvents and OSA?



On Sep 30, 2004, at 11:26 AM, R. Scott Thompson wrote:

We ended up putting some things behind a facade with the view and controller
layers going through this facade. In the end, the scripting engine was
just a second user of the model, next to the UI. Personally, I would
do the same for an AppleScriptable application.

Yeah, this is a good way to handle things.

Just to add a "me too", I tend to think of the scripting layer as another controller that attaches to the same model. The "views" in this case are whomever may receive the results from handling a particular script command.

Don't know if it's been mentioned as an advantage yet, but doesn't using AppleEvents internally as a layer between your Model and your Views/Controllers make recordability of AppleEvents a no brainer?


I've been away from AppleEvents since back in the Mac OS9 days, so forgive me if there are issues with recordability in Mac OS X. I did notice that the Finder is not nearly as recordable as it was in Mac OS 9.

_murat

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

This email sent to email@hidden
References: 
 >Cocoa Application Architecture - Think More About AppleEvents and OSA? (From: Simon Liu <email@hidden>)
 >Re: Cocoa Application Architecture - Think More About AppleEvents and OSA? (From: Dustin Voss <email@hidden>)
 >Re: Cocoa Application Architecture - Think More About AppleEvents and OSA? (From: "R. Scott Thompson" <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.