diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-17 17:17:32 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-17 17:17:32 +0200 |
commit | 4aa6da8ed37055e196204a45e3bac32039b395d9 (patch) | |
tree | 1490f12d8f80e8623de494d38f66e5961f2c744e /StepTalkShell/.svn/text-base/AppKit.txt.svn-base | |
parent | d6d73cfbcfd4eae88e53c4c30e221a66daade5e1 (diff) |
Build the system as a framework, include the StepTalk Shell for quick testing.
Diffstat (limited to 'StepTalkShell/.svn/text-base/AppKit.txt.svn-base')
-rw-r--r-- | StepTalkShell/.svn/text-base/AppKit.txt.svn-base | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/StepTalkShell/.svn/text-base/AppKit.txt.svn-base b/StepTalkShell/.svn/text-base/AppKit.txt.svn-base new file mode 100644 index 0000000..ea79ab9 --- /dev/null +++ b/StepTalkShell/.svn/text-base/AppKit.txt.svn-base @@ -0,0 +1,40 @@ +Simple AppKit Examples +---------------------- +To be able to try following examples you have to load the AppKit module: + + > Environment loadModule: 'AppKit' + + +How to get a filename using the Open panel + + > NSOpenPanel openPanel runModal ; filename + +Applications and files +---------------------- + +> Workspace := NSWorkspace sharedWorkspace + +How to launch an application + + > Workspace launchApplication:'application name' + +How to open a file + + > Workspace openFile:'file name' + +How to open a file with specified application + + > Workspace openFile:'file name' withApplication:'application name' + +How to open a file using the open panel + + > Workspace openFile:(NSOpenPanel openPanel runModal ; filename) + +Text +---- + +How to display a RTF file + + > text := NSAttributedString alloc + > text initWithPath: file documentAttributes:nil + > Transcript show: (text string) |