OBJ declarations - declare in subdirectory?
JBWolf
Posts: 405
Hello,
I have many objects being declared in my current program... I would like to move them into a sub-directory for better management.
I have tried to accomplish this without luck so far... It seems I cannot do this in SPIN?
Here is what the book says:
Anyone know how to do this?
Thanks
I have many objects being declared in my current program... I would like to move them into a sub-directory for better management.
I have tried to accomplish this without luck so far... It seems I cannot do this in SPIN?
Here is what the book says:
ObjectName is the filename, without extension, of the desired object. Upon compile, an object with this filename is searched for in the editor tabs, the working directory and the library directory. The object name can contain any valid filename characters; disallowed characters are \, /, :, *, ?, ", <, >, and |.
Anyone know how to do this?
Thanks
Comments
The objects either need to be in the same folder as the top object or in the Propeller Tool's library folder.
The note about the object being open in the editor tab doesn't appear to be true. Even if the file is open in a tab, the Propeller Tool won't find it.
When more than one file is open in an instance of the Propeller Tool the second file opened is opened into another tab.
A second file can be opened by using the "File\Open" option of by clicking on one of the objects listed in the top left window or by double clicking a file listed in the lower left window.
Selecting "File\New" will also open a new tab in the editor.
Though as I mentioned earlier, having a file open in a tab will not help the Propeller Tool find the file if it's not in the working directory or the library folder.
There actually is some weird behavior about open tabs. For example, if the file in the project folder or in the library folder is opened and modified in a tab, that text stream is consumed rather than the contents of the file that would normally be found. And, I believe that's based on only the file name, not the path name.
The utility of that is questionable, I believe that so long as the pathname can be resolved, then if there's a file with the same name open in a tab it is used instead.
JB,
This is super high on the list of shortcomings of the IDE and plagues anyone with multiple projects and a library hierarchy.