
Until now we have installed applications (projects) inside the Hoster, to be accessed by any user, using the Dock. Imagine, by example that we have a project whose name is "Scroll" having only a ScrollingText.
The Navigator is usually like an Web Browser, used by an end user to access islands having applications (projects).
But it can be customized, at some company, by the IT people, to have applications to be used privately only by one user. How to do this?
In the Class Navigator World, create a new method:
makeProjectLink: sp | win project1 | project1 := self makeMorphic: (MessageSend receiver: MorphicWorldHost selector: #makeProjectLink:extent:from: argument: 'Scroll') extent: 1024@768. win := TWindow new. win translationX: 8 y: 0.0 z: -20.0. win contents: project1. win closeContents. sp addChild: win. ^ win.
In the method: initialize add the line:
self makeProjectLink: space.
Remember to do a "big save".
Look the project inside the Navigator. We can move and resize the window inside the island.
TIP: You can receive a project from another person like a .PR file. You need to:
The project is available to be loaded by the Dock or by code.
TIP2: Remember that the Navigator can load new meshes (.ASE files) using the Tools menu A visitor can came to your island. If he has not a copy of the "private" project at his machine he will see its 2D window empty .
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
DISCLAIMER: This material can be translated for any language, and reproduced total or partially by anybody using any type of media. But, please, don't put your name like author. And let me know if it was useful (americo@dmu.com).The use of any code, 3D model or technique published is free and doesn't need to have any reference about this source. The author is not responsible for any damage that the material can cause.
