[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSBrowser small fix
From: |
Nicola Pero |
Subject: |
Re: NSBrowser small fix |
Date: |
Wed, 24 Oct 2001 11:06:49 +0100 (BST) |
Thanks - applied with tiny modification
> Hi,
>
> In NSBrowser: -_getTitleOfColumn we have:
>
> ...
> if ([c isLeaf])
> {
> return @"";
> }
> else
> {
> return [c stringValue];
> }
>
> and it should be:
>
> if ([c isLeaf] || [c stringValue] == nil)
> {
> return @"";
> }
> else
> {
> return [c stringValue];
> }
>
> otherwise, we will have an assertion failed (since we'll call
> NSCell: -setStringValue: nil) when NSBrowser objects have more than one
> empty column.
>
> It fixes the crash we have in NSOpenPanel and NSSavePanel when you
> maximise them and they both have empty columns.
>
> Ludo
>
>