Re: [BLACKBOX] Dialog.GetIntSpec (was Converters)

From: [at]} <Aubrey.McIntosh{>
Date: Sat, 8 Mar 2008 13:43:32 -0600

----boundary-LibPST-iamunique-1914771713_-_-
Content-type: text/plain

I read this the other way around. Views.View is an extension of Stores.Store.

I do have a model that I store/load in my "Ants" program. It was the
other choice for me to move to 1.6 when I gave an example of releasing
a project. I wrote Ants in about 2000 under 1.4, and I remember
spending a lot of time with little understanding on
Stores.Store.Domain. It is likely that I did something that works
under a special circumstance, but is fundamentally incorrect.

I would have to go back and read my code, but my natural thinking is
that I stored only the Model, and re-create the view after the Model
is loaded. I remember distinct plans to display two radically
different views --- View A is the ants on the ground, View 1 is the
pheromone trails on the ground. I developed the project with the view
that any third party would write View 1 to demonstrate (Model View
separation) and effective coordination during development, so the
entire prospect of storing a view seems unlikely.

Today I have some justification for going through the ".eth"
converter. No promises. But are there some questions or scenarios
you would like me to have in mind? Would you be more interested for
me to review the .eth converter or the update to Ants?

(from 1.6-rc5)
TYPE
        View = POINTER TO ABSTRACT RECORD (Stores.Store)
                context-: Models.Context;
                (v: View) ConsiderFocusRequestBy- (view: Views.View), NEW, EMPTY;
                (v: View) CopyFrom- (source: Stores.Store);
                (v: View) CopyFromModelView- (source: Views.View; model:
Models.Model), NEW, EMPTY;
                (v: View) CopyFromSimpleView- (source: Views.View), NEW, EMPTY;
                (v: View) GetBackground (VAR color: Ports.Color), NEW, EMPTY;
                (v: View) GetNewFrame (VAR frame: Views.Frame), NEW, EMPTY;
                (v: View) HandleCtrlMsg (f: Views.Frame; VAR msg: Views.CtrlMessage;
VAR focus: Views.View), NEW, EMPTY;
                (v: View) HandleModelMsg- (VAR msg: Models.Message), NEW, EMPTY;
                (v: View) HandlePropMsg- (VAR msg: Views.PropMessage), NEW, EMPTY;
                (v: View) HandleViewMsg- (f: Views.Frame; VAR msg: Views.Message), NEW, EMPTY;
                (v: View) InitContext (context: Models.Context), NEW, EXTENSIBLE;
                (v: View) Neutralize, NEW, EMPTY;
                (v: View) Restore (f: Views.Frame; l, t, r, b: INTEGER), NEW, ABSTRACT;
                (v: View) RestoreMarks (f: Views.Frame; l, t, r, b: INTEGER), NEW, EMPTY;
                (v: View) ThisModel (): Models.Model, NEW, EXTENSIBLE
        END;


On Sat, Mar 8, 2008 at 12:47 PM, Douglas G. Danforth
<Danforth{([at]})nowhere.xy
>
> Aubrey,
> But unless there is some other way to access the converters rather
> than through HostCmds then one MUST implement the stores as
> an extension of Views.View. In my case the store is not an
> extension of a view.
> -Doug
>
>
> Aubrey.McIntosh{([at]})nowhere.xy
> My gut sense is that Converters will give a more general (i.e.,
> useful) product, since any time the user wants to open one of those
> files the support is correctly in place.
>
>
> On Fri, Mar 7, 2008 at 11:27 PM, Douglas G. Danforth
> <Danforth{([at]})nowhere.xy
>
>
> Folks,
>
> Ah, ha! By poking around in HostCmds I found that it used
> Dialog.GetIntSpec which provides the user interaction to the
> file system that I desired. I was not aware that Dialog did this.
>
> So I may not even need Converters and its registration process
> since loading and storing can be done completely through Dialog
>
> Just wondering how many of you out there were aware of this?
>
> -Doug Danforth
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>
>
>
>
>
>
>
> ---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy



-- 
-- 
Aubrey McIntosh, Ph.D.
1502 Devon Circle
Austin TX 78723-1814
http://home.grandecom.net/~amcintosh/aubrey/Search/
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1914771713_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmls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SVNUUy5PfX0AZWMgKHdhcyBDb252
----boundary-LibPST-iamunique-1914771713_-_---
Received on Sat Mar 08 2008 - 20:43:32 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:58 UTC