| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| This applies to every piece of functionality that isn't thread-safe | unless explicitly documented otherwise.
"Not thread-safe" means only that the thread-unsafe item (variable, function, whatever) can't be safely used in more than one thread at the same time. However, it *can* be used from more than one thread as long as the uses *do not overlap*, as long as one thread is completely done with the item before another thread starts using it.
It's true that NSAppleScript must be assumed non-thread-safe (since it's not stated to be thread-safe), but that's not why it must be used only from the event-dispatch thread. *That* restriction stems from the fact that AppleScripts use events to send commands and data back and forth; the AppleScript must be run on the main event loop or the events it depends on won't get sent to it.
-- Chris
_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden
| References: | |
| >crashing problem due to buckyball timer exception in NSAppleScript class (From: IMD <email@hidden>) | |
| >Re: crashing problem due to buckyball timer exception in NSAppleScript class (From: Chris Hanson <email@hidden>) | |
| >Re: crashing problem due to buckyball timer exception inNSAppleScript class (From: email@hidden) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.