new
Syntax
new button [<name>]
new field [<name>]
new card [<name>]
new window [<name>]
new project <path>
new menu [<name>] [in <parent item>]
new menuitem [<name>] in <parent menu>
new card "foo"
new field "Name Entry"
new button
new project "/Users/sandra/MyProject"
new project "/Users/andrea/Homework.xstk"
new menu "File"
new menu in menuitem "Find" of menu "Edit"
new menuitem "Find Next" in submenu of menuitem "Find" of menu "Edit"
Explanation
The new
command lets you create new objects on the current card, or new cards
in the current window, or new windows in the current project, or a new project on disk.
You can optionally specify a name they should use.
A new...
message is sent to the newly-created object (or in the case of a newly-created card/background/window/project, to the first card in the new object). Possible new...
messages are newButton
, newField
, newGraphic
, newCard
, newBackground
, newWindow
, newBackground
, newMenu
or newMenuItem
.
When creating a menu item, you must specify the menu you want to create it in. When creating a menu, you may specify the menu item of which this menu should be a submenu. If you do not specify a parent menu, the menu will be created in the menu bar.