Re: WebKit+AppleScript+JavaScript
Re: WebKit+AppleScript+JavaScript
- Subject: Re: WebKit+AppleScript+JavaScript
- From: Jens Alfke <email@hidden>
- Date: Thu, 17 Apr 2008 09:34:53 -0700
On 17 Apr '08, at 9:08 AM, Praveen Kumar wrote:
I created a sample cocoa+webkit application and added apple
scriptability. I execute the script on this application from script
editor. The application opened the given url successfully, but i
can't able to quit the application from the dock (right click on the
application icon on the dock and select quit option). If i open the
application and load the url manually then it is quitting fine from
the dock.
Is the app otherwise responsive to user events while it's in this state?
Try sampling it — I suspect it's somehow running a nested runloop
while still handling the initial AppleEvent. The 'quit' AppleEvent
sent by the Dock will stay queued until your open-URL event handler
returns.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden