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: Should Close



Maybe it's because a document-based Studio app can handle that behavior by itself (if you want the standard asking-to-save-on closing behavior. All you have to do is set the modified property of the document to true every time something you do changes what would be written to the file.

David

On Oct 21, 2004, at 12:50 PM, Brad wrote:

Andreas,

The problem that I am experiencing (and I believe John is as well) is that I can't even get the "Should Close" handler to TRIGGER let along return anything. I just ran a test on a doc-based app that I am working on. I attached to "Should Close" handler to the main window and made sure that the "Should Close" was directed at my applescript file. The sample code, below, is never called:

on should close theObject
	log theObject
	beep
	return true
end should close

Am I not linking the handler correctly? Should I be linking the handler to something else?

Brad
-----
COMPUTER: a nimble electronic brain devoid of animal passions and human wit and therefore admirably suited to the contemporary corporate environment. -- The Cynic's Dictionary



On Oct 21, 2004, at 11:08 AM, Kiel wrote:

It must return true or false

Regards
Andreas


On Oct 21, 2004, at 7:01 PM, John Mistler wrote:

I cannot seem to get the "Should Close" handler of the document window to
trigger when the document window is closed. I have verified that it is
checked in IB and the handler exists in the document script. Has anyone
gotten it to work?


Thanks,

John

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


This email sent to email@hidden


--
David Durkee
email@hidden
<http://ddurkee.homeip.net/>

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

This email sent to email@hidden
References: 
 >Re: Should Close (From: Brad <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.