Re: cocoa-dev digest, Vol 1 #964 - 16 msgs
Re: cocoa-dev digest, Vol 1 #964 - 16 msgs
- Subject: Re: cocoa-dev digest, Vol 1 #964 - 16 msgs
- From: Jason Bobier <email@hidden>
- Date: Wed, 12 Dec 2001 11:25:36 -0800
Excellent. Thanx Neal.
In thinking through my attempts. I might have actually had it working
and just not known it. I was using script editor to try and send my app
the quit event and it would refuse to do it; saying that it couldn't
read the app's dictionary. So maybe it actually did work.
I don't know of the OS would be able to tell if it should send me a quit
event or not though.
Jason
On Wednesday, December 12, 2001, at 07:51 AM, cocoa-dev-
email@hidden wrote:
I put my sample code (a Mac OS X Project Builder Project called
AELogger) on my IDisk website
(http://homepage.mac.com/nealackercrocker/FileSharing.html). A
direct link to the compressed project is given by
(http://homepage.mac.com/nealackercrocker/.cv/nealackercrocker/Public/AELogger Example.
sea.hqx-binhex.hqx).
Be forewarned, the AELogger project is an abortive attempt to do
something which I won't go into, so it's overall structure might not
make much sense. However, it illustrates how to succussfuly use the
NSAppleEventManger class to register a handler for an appleevent (in
this case, a nonsense event with class "foo " and id "bar "). You
can test out the handler with an applescript I included.
Neal.
--
Jason A. Bobier
email@hidden
Tech Lead, PGP Macintosh Products
http://www.prismatix.com/
Network Associates, Inc. Nothing's constant
PGPKey: <
http://keys.pgp.com:11371/pks/lookup?op=get&search=0xF6F83318>
Fingerprint: 7809 7E6E BCCA 903D 4618 9740 EB10 9DF9 F6F8 3318