summaryrefslogtreecommitdiff
path: root/StepTalkShell/.svn/text-base/AppKit.txt.svn-base
diff options
context:
space:
mode:
Diffstat (limited to 'StepTalkShell/.svn/text-base/AppKit.txt.svn-base')
-rw-r--r--StepTalkShell/.svn/text-base/AppKit.txt.svn-base40
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)