home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-06 | 1.3 KB | 51 lines | [TEXT/ttxt] |
- // Copyright © 1993,4 Apple Computer, Inc. All rights reserved
- //Project Data for GoodForm
-
- // application based constants
- constant kAppSymbol := '|GoodForm:PIEDTS|;
- constant kAppName := "GoodForm";
- constant kPackageName := "GoodForm:PIEDTS";
- constant kAppObject := '["Datum","Data"];
- constant kAppAll:= "All Data";
-
- // soup based constants
- constant kSoupName := kPackageName;
- constant kSoupIndexes := '[];
-
- // a default soup entry
- DefConst('kDefaultEntry, {text: "", labels: nil});
-
-
- // GetAppParams constants
- constant kMaxApplicationWidth:= 250;
- constant kMaxApplicationHeight:= 336;
-
- // Install and RemoveScripts
-
- InstallScript := func(partFrame)
- begin
- // register support for routing
- GetGlobals().routing.(kAppSymbol) := partFrame.theForm.entryRoutingFrame;
-
- // Register global find support
- call kRegFindAppsFunc with (kAppSymbol);
-
-
- // register filing support
- AddArraySlot(soupNotify, kSoupName);
- AddArraySlot(soupNotify, kAppSymbol);
- end;
-
-
- RemoveScript := func(packageFrame)
- begin
- // Unregister global find support
- call kUnRegFindAppsFunc with (kAppSymbol);
-
- // un-register filing support
- local soupNotifyPos:= ArrayPos(soupNotify, kAppSymbol, 0, nil);
- ArrayRemoveCount(soupNotify, soupNotifyPos - 1, 2);
-
- // un-register routing support
- RemoveSlot(GetGlobals().routing, kAppSymbol);
- end;