[comp.sys.mac.programmer] MacApp Help needed & Fuzzy Duck...

tgarman@me.ri.cmu.edu (T R Garman) (05/08/90)

alright all you MacApp heads out there...

I am writing an app that uses 3 different kinds of documents,
and I am trying to implement them in a somewhat non-standard way.

Heres the story:  I have a main document that is used for drawing, 
this is opened when the app starts up.  I have a second doc that 
uses a TTextGridView for displaying and editing tool information
(6 cols 50 rows) that is implemented in a modal dialog(I know it
shouldnt be).  When the user fills in the tool info in the gridView
and cliks co  The dialog also contains a few editText fields. 
When the user clicks on convert, the tool info is converted into CNC code and
placed into a text editing window for the user to edit.  This is doc
three.

The two second docs are to be linked with the main doc so that when
the main is opened the others are opened with it.  It should also be able 
open text docs by themselves(that wont need the other docs).

For the most part this beast works pretty well ( considering its as
bullet-proof as a kleenex)  there are a few problems that I can't seem
to figure out:

1.  When the dialog that contains the gridView is opened, i can type into
the gridView (via an entry box (TTEView)) but as soon as I try to type
something into the EditText fields, I can no longer type into the grid.
The editText fields work OK except for that.  Also the Adorncols and 
AdornRows for the gridView are not being called.(at least dont seem to be)

2. I have implemented an open document menu feature(in 
TMyApplication.domakeDocuments)  for the text doc
and it works ok, the part that dosent work is this: when the user clicks
on the convert button (in the tool dialog) I want to create a new 
text doc if one is not already open. Can this be done other than using
TMyApp.domakedocs and .domakeviews?  I have hacked it together but it
wont fly for long...

3. My deadline was a week ago...need I say more?

Any Help at all would be greatly appreciated...

Please relpy via email and I'll summarize if theres interest(or any responses)

T.R Garman

tgarman@me.ri.cmu.edu