sounds good to me. open an entry. On Nov 29, 2011, at 5:32 PM, Sean P. DeNigris wrote:
This is what I have for a class comment, between what was already there and what Igor said in this thread:
I am a UI manager which doesn't provide any kind of interactivity with users. I guarantee that your task(s) will run in fully-automated mode. This is useful for things like: - an image runing as a persistent application on a server - an image running headless from the command-line with some batch scripts/commands
I automatically take ownership: - when you run an image with the -headless parameter - during image startup (StartupUIManager)
To install me: UIManager default: NonInteractiveUIManager new.
To replace me: UIManager default: MorphicUIManager new.
To handle requests when a UI is not available, catch ErrorNonInteractive. For example: response := [ UIManager default request: 'what is your name?' ] on: ErrorNonInteractive do: [:ex | ex return: 'Mr. John Smith' ].
My default error handling: for any unhandled error, print a stack trace to a log file and exit to the OS.
-- View this message in context: http://forum.world.st/Problem-with-NonInteractiveUIManager-tp4115412p4119806... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.