Updating View without changing focus
Sean Willson
willson at handset.laa.com
Thu Oct 5 14:32:40 PDT 1995
Michael,
> 1. When the user is typing, the textfield is running a modal
loop. > When the user pauses, the modal loop releases, and the
appkit main > loop can run.
Would this be done by overriding the textWillChange and
TextDidChange methods? An if so after the textobject updates how
will it return focus to where the user was typing, i.e. I have
entered 'Sean M. Wi' and the trigger goes off, how do I insert the
I-Bar after the text I have already typed........
> 2. When the appkit main loop runs, the socket, which was
registered > to the DPS system (DPSAddFD), can trigger, calling the
routine that > reads from the file and stores it into a buffer.
Which socket are we speaking of and why do I need a socket, sorry
if this is obvious?
> 3. After that, a timer can fire, and the buffer parsed for
display. > Anything that was not displayed before is added. This is
done by
> setting the insertion point to the end of the displayed text, and
> then modifying it (select an empty space at the end, and
> then replace the selection). It's not a NeXT Text object (at
least, > I've never seen a text object that can have a popup list
inside
> it), so I have no idea of the details.
How would I grab only what was changed in a file, thread a system
tail function or something like that? Since the file can get large
am I still going to experience some trouble with the typing being
delayed?
> he secret? The user pausing in the typing ends the modal loop,
> which lets everything else run. Just like while you type, the
> cursor doesn't flash, but when you stop, it does.
What are you refering to as the modal loop here? And when would I
create this loop, after the textDidChange: delegate method is called
by the textField?
I am unfamilure with Real-Time GUI applications but would like to
get more into it..........Any help would be great.....
Sean Willson
--
Sean M. Willson. Lynn-Arthur Associates, Inc. +1 313 995 5590
willson at laa.com Operations Support Systems +1 313 995 5989 (fax)
2350 Green Road Suite 160 Ann Arbor, MI, 48105 USA
More information about the OmniWeb-l
mailing list