NSBrowser bug
NSBrowser bug
- Subject: NSBrowser bug
- From: Tom Waters <email@hidden>
- Date: Fri, 8 Jun 2001 13:04:34 -0700
While I'm harping on NSBrowser, check this out.
From the documentation:
------------
path
- (NSString *)path
Returns the receiver's current path. The components are separated with
the string returned by pathSeparator.
Invoking this method is equivalent to invoking pathToColumn: for all
columns.
--------------
If this is the case, then [browser path] should always be equal to
[browser pathToColumn: [browser lastColumn]]
This is true, unless there are multiple selections in the last column,
in which case, [browser path] returns the last selected item.
One would think that [browser setPath: [browser path]] would be a NOP in
terms of setting where the browser columns are set, (it makes sense that
it clears the selection), but it is not a NOP, since if you have
multiple selections in the last column, and the last one is a branch,
the new columns will include that last branch opened.
Not very consistent. or at least very poorly documented.