🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

NXBrowser highlighting probs

#554
From: Don McGregor
Date: Tue, 07 Apr 1992 06:00
23 lines
1453 bytes
I've got a problem with a subclass of NXBrowserCell.

I've reimplemented the drawInside:inView: method and am using it in a normal  
NXBrowser.  The highlighting of selected cells seems to work inconsistently. 

I can select a cell fine the first time, and then I can deselect it.   
Highlighting works correctly in both instances.  But after that, I can't  
highlight the cell again.  The cell is being selected OK (I can tell because  
the next column in the NXBrowser is changing) but the cell isn't being  
highlighted after the first selection.

The relevant code in the drawInside:inView: method looks like

 PSsetgray((cFlags1.highlighted || cFlags1.state) ? NX_WHITE : NX_LTGRAY);
 NXRectFill(cellFrame);

Can anyone point me in the direction of what might be causing something like  
this?

--
Don McGregor             | "I like maxims that don't encourage behavior
mcgredo@bluto.ie.orst.edu|  modification"   --Calvin
Technical Details
Message-ID: <1992Apr7.060045.3044@talon.ucs.orst.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!orstnews!usenet

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!orstnews!usenet
From: mcgredo@bluto.ie.orst.edu (Don McGregor)
Subject: NXBrowser highlighting probs
Message-ID: <1992Apr7.060045.3044@talon.ucs.orst.edu>
Sender: usenet@talon.ucs.orst.edu (Usenet News admin)
Nntp-Posting-Host: bluto.ie.orst.edu
Reply-To: mcgredo@bluto.ie.orst.edu
Organization: Oregon State University - Univ. Computing Services
Date: Tue, 7 Apr 1992 06:00:45 GMT