Difference between revisions of "Scripting context"

From GNUstepWiki
Jump to navigation Jump to search
 
m
 
Line 1: Line 1:
 
== Objects in Scripting Environments ==
 
== Objects in Scripting Environments ==
  
In most scripting environments, including Common or application environment there are available following objects:
+
In most scripting environments in [[StepTalk]], including Common or application environment there are available following objects:
  
 
* '''Environment''' - current scripting environment
 
* '''Environment''' - current scripting environment
Line 31: Line 31:
 
| Distributed notification center || [[NSDistributedNotificationCenter]] defaultCenter
 
| Distributed notification center || [[NSDistributedNotificationCenter]] defaultCenter
 
|}
 
|}
 +
 +
 +
[[Category:Scripting]]

Latest revision as of 12:31, 18 February 2005

Objects in Scripting Environments

In most scripting environments in StepTalk, including Common or application environment there are available following objects:

  • Environment - current scripting environment
  • Transcript - shared transcript
  • Workspace (not yet default)

You can get standard GNUstep objects:

Object How to get the object
Workspace NSWorkspace sharedWorkspace
File manager NSFileManager defaultManager
Open panel NSOpenPanel openPanel
Save panel NSSavePanel savePanel
Pasteboard NSPasteboard generalPasteboard
Screen NSScreen mainScreen
User defaults NSDefaults standardUserDefaults
Notification center NSNotificationCenter defaultCenter
Distributed notification center NSDistributedNotificationCenter defaultCenter