Programming for the Newton using Macintosh, 2nd ed.
aboutInfo aboutView AddDeferredCall() AddEntry() AddIndexXmit() AddToDefaultStoreXmit() afterScript [1] [2] allDataDefs [1] [2] [3] allLayouts [1] [2] allSoups [1] [2] [3] allViewDefs [1] [2] [3] registering with system appAll [1] [2] Apple Modem Tool AppleTalk ADSP Tool application application symbols uniqueness closing designing [1] handling soups in how to specify as backdrop installing opening package name registering with Apple Computer removing [1] [2] saving user information in NewtApp screen size, determining at run-time soup name, choosing appropriately switching between views in NewtApp system registration in NewtApp system soup tag application base view justification Apply button in NTK appObject [1] [2] appSymbol [1] [2] [3] in routing arrays [1] adding elements to creating definition foreach used with functions AddArraySlot() ArrayRemoveCount() SetAdd() SetContains() SetDifference() SetLength() SetOverlaps() SetRemove() SetUnion() removing elements from syntax using as sets assignment, slots and proto inheritance Attributes menu in browser auto part registering
base parent template in NTK [1] [2] base view closing an application from definition boolean break BreakLoop() breakOnThrows [1] [2] browser window adding new slots Apply button arrow keys, changing order with Attributes menu creating [1] [2] definition [1] [2] deleting and renaming slots displaying a slot's values editing an existing slot Methods menu parts of [1] [2] Revert button selecting Templates slot editor slot list Specific menu template list in viewBounds slot editor viewEffect slot editor viewFlags slot editor viewFormat slot editor viewJustify slot editor bugs views in the wrong location in NTK with parent and sibling justification building a package bytecodes [1] suppressing
CD-ROM contents character children creating dynamically stepChildren and viewChildren ChildViewFrames() class slot ClassOf() Clone compared to DeepClone() Clone() [1] [2] Close() closing an application CompuServe, Newton material on connecting AppleTalk Mac-Newton connection in NTK multiple connections PowerBook problems PowerBook serial connection serial port specification Toolkit Preferences use in using the serial connection constants defining defining in Project Data file path expressions used as constants file example of copy protection CreateBlankEntry() CreateSoupXmit() currentLayout cursors creating definition functions MapCursor() methods Clone() CountEntries() Entry() Goto() GotoKey() Move() Next() Prev() Query() Reset() WhichEnd()
dataDef class slot, use of example FillNewEntry slot name problems with slots in [1] superSymbol support for routing symbol _dataDefs global variable Date Field dateFindSlot Debug build, setting in NTK Debug() debugging application downloading tip break loops bytecodes [1] [2] debug slot in ROM Protos debugOn [1] [2] exceptions functions BreakLoop() Debug() Disasm() Display() DV() ExitBreakLoop() GetAllBreakpoints() GetAllNamedVars() GetAllTempVars() GetNamedVar() GetPathToSlot() GetPathWhereSet() GetSelfFromStack() GetTempVars() GetView() GloballyEnableBreakpoints() InstallBreakpoint() Print() RemoveAllBreakpoints() RemoveBreakpoint() RunUntil() SetNamedVar() SetTempVar() StackTrace() Step() StepIn() StepOut() Write() NS Debug Tools printDepth printing routines printLength suggestions tools trace tracing using Print statements using text slots using the debug slot ViewFrame _dataDefs global variable _viewDefs global variable debugging functions [1] debugOn [1] [2] declareSelf declaring views [1] and linked Subviews DeepClone() defaultDataType DeletionScript() [1] [2] definition Demo NTK contents dictionaries, custom Dirty() Disasm() disconnecting the Inspector display bug in NTK Display() doCardRouting DV()
entries adding compression definition [1] [2] functions [1] EntryChangeXmit() EntryModTime() EntryRemoveFromSoupXmit() EntrySoup() EntryStore() EntryUndoChangesXmit() EntryUniqueID() limiting size of entry layer. See NewtApp entryChanged EntryChangeXmit() entryDirtied EntryModTime() EntrySoup() EntryStore() EntryUndoChangesXmit() EntryUniqueID() error messages, debugging with exceptions ExitBreakLoop()
faxing [1] implementing printNextPageScript() FillNewEntry() [1] [2] problems with FillNewSoup() find support in NewtApp flavor folder support in NewtApp fonts for loops foreach loops [1] arrays using collect deeply frames using form parts registering frames [1] accessing slots in creating definition [1] [2] foreach used with functions GetSlot() GetVariable() HasSlot() HasVariable() nesting removing slots slot creation multilevel slot values syntax
GetAllBreakpoints() GetAllNamedVars() GetAllTempVars() GetAppPreferences() GetLayout() GetNamedVar() GetPathToSlot() GetPathWhereSet() GetSelfFromStack() GetSlot() GetSoup() GetSoupNames() GetStores() GetTempVars() GetUnionSoup() GetVariable() GetView() GetViewDefs() global function calls global variables printDepth printLength trace GlobalBox() GloballyEnableBreakpoints() globals frame glossary [1]
HasSlot() HasSoup() HasVariable() Hide() Hilite()
if/then/else syntax value of immediate types index specification frame indexes [1] definition multislot NewtApp searching every entry tag indexes using validTest infoFrame inheritance :? operator assignment to inherited slots [1] [2] comparison to other languages [1] [2] debugging definition [1] don't use _parent inherited keyword [1] [2] lookup colon versus dot syntax parent and proto NTK Templates overridden data overridden method parent inheritance [1] for inheriting data proto and parent, combining [1] protos lookup rules for multiple protoing relationship to Newton run-time views self difference between slot and self.slot using within a method _proto slot inherited using with view scripts Inspector connecting connecting Newton to Desktop connecting with Toolkit App creating functions within debugging with disconnecting downloading a package with evaluating NewtonScript code execution environment printDepth setting restrictions suppressing execution echo tracing using effectively InstallBreakpoint() installing an application InstallScript() definition example [1] [2] NewtApp standard integer interface design [1] anticipate actions status information using Whiz Bang features when to leave partial views Internet, Newton material on IsValid()
justification application base view bugs parent and sibling center full Graphic identifying a view's sibling parent parent and sibling interactions ratio [1] sibling Text
kAppName kAppSymbol kPackageName
label, slot layer of NewtApp labelCommands layout layer. See NewtApp linking layouts in NTK local variables assigning values to declaring not required lookup rules scope of LocalBox() longFormat loops [1] [2] break for. See for loops foreach. See foreach loops loop repeat. See repeat loops while. See while loops
McKeehan email address menuLeftButtons [1] [2] menuRightButtons message definition message sending calling a method methods [1] :? operator calling definition [1] [2] don't use _parent inherited keyword return values of syntax using self within a method Methods menu in browser MinimalBounds()
name dataDef slot viewDef slot Name Field native functions native keyword NewtApp application layer responsibilities templates and slots in [1] custom slot support date find support definition [1] [2] displaying entries from a soup entry layer responsibilities templates and slots in [1] layout layer responsibilities templates and slots in [1] newtSoup, required slots registering with system routing scripts slot layer responsibilities templates and slots in [1] soup support structure of NewtApplication aboutInfo slot aboutView slot allDataDefs slots allLayouts slot allSoups slot allViewDefs slots appAll slot appObject slot appSymbol slot currentLayout slot dateFindSlot slot doCardRouting slot GetAppPreferences slot prefsView slot previousLayout slot SaveAppState slot ShowLayout slot statusBarSlot superSymbol slot target slot targetView slot title slot newtCheckbox newtClockFolderTab newtDateFilter newtDateNTimeFilter newtEntryView slots of newtFalseEntryView newtFolderTab newtIntegerFilter newtLabelDateInputLine newtLabelInputLine newtLabelNumInputLine newtLayout newtNewStationeryButton newtNumberFilter newtNumView Newton 2.0 application specify in Project Settings Newton debug tools Newton Developer Programs Newton Programming Classes Newton Toolkit, definition NewtonScript benefits of definitions of types exceptions in features of garbage collection operators in precedence order portability NewtonScript heap definition newtOverLayout newtROLabelDateInputLine newtROLabelInputLine newtROLabelNumInputLine newtRollEntryView newtShowStationeryButton newtSimpleDateFilter newtStationeryView newtStatusBar newtTextView nonimmediate types NS Debug Tools NTK adding a slot adding files to a project [1] [2] adjusting screen size displays AppleTalk connection [1] [2] base parent template [1] [2] browser Attributes menu in creating a new window Methods menu in Specific menu in the browser window [1] [2] bugs in building a package connecting the Inspector constants create a layout window deleting invisible views demo NTK and NTK differences [1] [2] demo NTK contents downloading Toolkit App EditorCommands invisible views, deleting layout window, views in wrong location linking layouts MacÐNewton connection Mark as Main Layout menus [1] Newton Toolkit Font package settings Platforms Folder Preview projects creating files in a project the Project menu proto creating serial connection showing slot values Specific popup menu system requirements Template Info dialog templates creating in a parentÐchild hierarchy [1] [2] naming [1] [2] removing size and changing [1] [2] tool palette Toolkit App Toolkit Preferences tutorial User proto palette using effectively NTK 1.0 build rules
Open() opening an application operators Output Settings OverviewAbstract()
package settings parent inheritance combining with proto inheritance [1] definition [1] don't use _parent inheriting data parent justification _parent slot and NTK templates _parent slot of the base view parent-child hierarchy NTK template positions [1] [2] part frames path expressions as constants PDA Developers Magazine persistent objects definition Phone Field PowerBook, connecting problems prefsView Preview previousLayout Print() printDepth printing, implementing printLength printNextPageScript() [1] [2] profiling programming experience required Project Data file constants Project Settings Project Settings dialog proto slot _proto slot _proto slot's relation to views _proto slot, added by NTK protoApp protoCloseBox protoFrameFormat protoLabelInputLine entryFlags entryLine protoPictureButton protoPopupButton protoPrintFormat protos creating in NTK creating user protos definition [1] [2] designing [1] kinds of relation to templates shared between projects size of in NewtonScript system protos common uses of configuration definition NTK treatment of protoApp configuration protoCloseBox configuration protoLabelInputLine configuration protoPictureButton configuration template reuse, way to template size in relation to user protos code references to definition NTK treatment of viewBounds slot in
queries definition dynamic nature of tag specification frame text search words search querySpecFrame, creating
ratio justification [1] real RegDataDef() registering form parts RegisterViewDef() RegSoupChange() RegUnionSoup() RemoveAllBreakpoints() RemoveBreakpoint() RemoveIndexXmit() [1] [2] RemoveScript() definition example [1] [2] keeping small NewtApp standard warnings concerning removing an application ReOrientToScreen() [1] [2] ROM_DefRotateFunc repeat loops Retarget() Revert button Rhodes email address ROM_DefRotateFunc routeScripts routing [1] appSymbol fax, adding support [1] newtApp support routeScripts array routing formats target targetView transports RunUntil()
SaveAppState() scrollingEndBehavior searches, efficient self [1] [2] using :Message(), not self:Message() using self.slot using within a method when using parent inheritance serial connection in NTK PowerBook specifying which port SetNamedVar() SetTempVar() SetValue() sharing data shortFormat Show() ShowLayout() sibling, identifying slot adding in NTK definition no display in NTK showing values in NTK slot editors slot layer. See NewtApp slots accessing, how to creating creating in NTK definition deleting and renaming in NTK displaying values of in NTK editor in NTK efficient slot creation multilevel creation of nonexistent slot access removing testing for existence [1] [2] [3] soup def frame soupDescr soupIndices soupName soupQuery soups [1] adding slots to entries in soups adding slots to other soups application soup issues changing an entry in a soup cloning of entry creation time definition [1] [2] dynamic nature of entries. See entries functions GetUnionSoup() RegSoupChange() RegUnionSoup() [1] [2] UnRegSoupChange() UnRegUnionSoup() index specification frame indexes. See indexes methods AddIndexXmit() AddToDefaultStoreXmit() GetIndexes() IsValid() RemoveIndexXmit() [1] [2] moving cursors multislot indexes naming NewtApp allSoups slot displaying entries [1] [2] entry saving name slot in new entry queries in registration soup creation in notifying of changes reading data from another soup removing, when to soup def frame [1] [2] support in stationery union soups _proto slot, treatment of _uniqueID Specific menu in browser Specific popup menu StackTrace() StartFlush() stationery dataDef [1] [2] responsibilities dataDef default type definition [1] [2] examples [1] interaction with system NewtApp slots registration structure of viewDef responsibilities statusBarSlot [1] [2] Step() stepChildren [1] [2] [3] creating children dynamically with StepIn() StepOut() stores adding to with NewtApp definition [1] [2] [3] methods CreateSoupXmit() GetSoup() GetSoupNames() [1] [2] GetStores() HasSoup() removing while a cursor is iterating StringExtract() strings accessing elements of converting to/from symbols definition in NewtApp superSymbol [1] [2] [3] in dataDef problems with symbol dataDef slot viewDef slot symbols converting to/from strings system protos
tag indexes tag specification frame, creating target in routing slot in newtEntryView targetView in routing Template Info dialog templates and the _parent slot creating views from definition naming [1] [2] removing selecting siblings, identifying size changing [1] [2] text line amounts word and character amounts theSoup 32-bit addressing information title [1] [2] Toolkit App connecting the Inspector with downloading [1] [2] tracing [1] [2] problems with [1] turning off transport, definition type, viewDef slot types modifying
Unicode union soups creating UnRegDataDef() UnRegisterViewDef() UnRegSoupChange() UnRegUnionSoup() Usenet, Newton material on
vApplication variables local lookup rules vCharsAllowed vClickable vClipping version viewDef slot vGesturesAllowed view attributes using SetValue() view classes clEditView clGaugeView clKeyboardView clMonthView clParagraphView clPickView clPictureView clPolygonView clRemoteView clView viewBounds [1] [2] changing initializing at runtime [1] slot editor in NTK viewChildren viewClass definition slot editor viewCObject and Open message definition [1] [2] relation to viewSetupFormScript() when destroyed viewDef [1] [2] creating example infoFrame name slot problems with routing routing support slots in symbol slot type slot version slot _viewDefs global variable viewEffect slot editor in NTK viewFlags slot editor in NTK viewFont viewFormat examples modifying in viewSetupFormScript() slot editor in NTK [1] [2] View Fill in slot View Frame in slot View Lines in slot ViewFrame, a debugging tool viewHideScript() viewIdleScript() viewJustify bug with NTK modifying in viewSetupFormScript() slot editor in NTK [1] [2] viewOrigin viewOverviewScript() definition viewQuitScript() definition views appearance and behavior application base view and declaring base view definition creating children dynamically creating views declaring [1] and invisible views and linked Subviews definition [1] [2] how views are destroyed inheritance relationship justification not declaring parent justification portrait and landscape modes stepChildren array view scripts viewBounds slot editor in NTK viewCObject, definition viewEffect slot editor in NTK [1] [2] viewFlags slot editor in NTK viewFont viewFormat slot editor in NTK viewJustify slot editor in NTK viewScrollDownScript() viewScrollUpScript() viewSetupChildrenScript() [1] [2] in message order with printing viewSetupDoneScript() in message order with printing viewSetupFormScript() [1] changing view attributes in in message order setting Justification and Bounds in viewCObject with printing viewShowScript() viewTransferMode vLettersAllowed vMathAllowed vVisible
while loops Write()
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996