🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #196

NXBrowser problem.

#196
From: Scott Hess
Date: Thu, 23 Jul 1992 00:49
28 lines
1762 bytes
I've a situation where I need the action method for an NXBrowser
to modify the values in the browser.  Unfortunately, I've been
having some problems.  [This is under NS2.1.]

An obvious incantation to reload the browser would be to incant
[browser loadColumnZero].  _But_, there's a problem here.  The
action method will have been called from a Matrix in the browser
- and loadColumnZero frees all of the columns and then recreates
them!  So, when you return from the action method after doing a
loadColumnZero, your program crashes (because the Matrix id was
moved out from under the Matrix mouseDown: routine).

OK, another option is to do [browser reloadColumn:0].  This _works_,
but not all that well.  What happens is that I get the output:

Assertion failed: You removed a View from the View hierarchy that
had been lockFocus'ed

which isn't quite what I wanted, either.  The solution that I've
used is to schedule a delayed method invocation via
perform:with:afterDelay:cancelPrevious:.  This works, but does have
other drawbacks.  Anyone have a better idea?

Thanks,
--
scott hess <shess@ssesco.com>  <Who's now in a programming Berserker-frenzy>
12901 Upton Avenue South, #326  Burnsville, MN 55337 (612) 895-1208 Anytime!
<I want to become so famous that people buy tapes of me reading source code>
Technical Details
Message-ID: <SCOTT.92Jul23004939@nic.gac.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!gacvx2.gac.edu!gacvax2!scott

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!darwin.sura.net!wupost!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!gacvx2.gac.edu!gacvax2!scott
Newsgroups: comp.sys.next.programmer
Subject: NXBrowser problem.
Message-ID: <SCOTT.92Jul23004939@nic.gac.edu>
From: scott@nic.gac.edu (Scott Hess)
Date: 23 Jul 92 00:49:39
Distribution: world
Organization: Gustavus Adolphus College
Nntp-Posting-Host: nic.gac.edu
Lines: 28