• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSBrowser bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: NSMatrix selections
  • Next by Date: Re: NSBrowser selections
  • Previous by thread: RE: NSMatrix selections
  • Next by thread: Handling Dragged Urls
  • Index(es):
    • Date
    • Thread