Re: NSBrower selectedCells lies

2008-05-23 Thread Martin Redington
I instrumented all my delegate methods, and they don't seem to get called at all during the redraw in either the normal or pathological cases. looking at the case where NSFocusRingTypeNone causes the same symptoms, I put a breakpoint on drawInteriorWithFrame, and then set it to dump a backtrace.

Re: NSBrower selectedCells lies

2008-05-22 Thread Martin Redington
I've made some progress in hunting this down, although it seems a little weird. Basically, in an NSBrowser, if you have a column with, for example, three items, and you click on another, - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView gets called a few times for

Re: NSBrower selectedCells lies

2008-05-22 Thread Graham Cox
Check whether anything in your delegate is throwing an exception (NSAssert can throw an exception btw). That might be interrupting the update loop. hth, G. On 23 May 2008, at 10:44 am, Martin Redington wrote: I've made some progress in hunting this down, although it seems a little

NSBrower selectedCells lies

2008-05-06 Thread Martin Redington
more NSBrowser problems (on Leopard, building with Xcode 2.5 for Tiger+). My NSBrowser is set to allow multiple and branch selection. In my custom NSBrowserCell subclass, I over-ride -[NSBrowserCell drawInteriorWithFrame:inView:] to do some custom drawing when the cell is selected (I need to draw