[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in NSBrowser ?

From: Yen-Ju Chen
Subject: Re: bug in NSBrowser ?
Date: Mon, 09 Sep 2002 09:28:22 -0400

From: Adam Fedor <address@hidden>
To: Yen-Ju Chen <address@hidden>
CC: address@hidden
Subject: Re: bug in NSBrowser ?
Date: Sun, 08 Sep 2002 17:14:00 -0600

Yen-Ju Chen wrote:

 I realize that I misunderstood the usage of browser:selectRow:inColumn.
 Thanx for the hint.
 And there is a minor bug that browser won't select the cell in matrix
 after browser:selectRow:inColumn: return YES.
 I attach a patch for that if it is a bug.

Actually that's part of the change I made. The documentation specifically states that the delegate is responsible for selecting the cell. Actually, I don't really like it this way, especially for browser:selectCellWithString:inColumn:, since it's hard for the delegate to figure out which cell to select while it is easy for the browser.

 That's really weird.
 Does Cocoa behave the same as what the documentation says?
 I doubt it.
 And the browser do nothing after the delegate return YES/NO.
 There's no reason to have a delegate method with return value.

 Another question is that now, doClick: won't call the selectRow:inColumn:.
 I feel that doClick: should call the selectRow:inColumn:.
 That would make more sense even the documentation doesn't say that.
 Since doClick: responses to the cell selection,
 it is reasonable to think the selectRow:inColumn will be called
 by doClick:.


Join the worldÂ’s largest e-mail service with MSN Hotmail. http://www.hotmail.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]