NSBrowser drawing

  • Hi All,

    I am using NSBrowser in an application, I am working on. I have
    placed that browser in an RBSplitSubView, as in iTunes browsing view.
    When I drag the vertical scroller displayed for one of the browser's
    columns, the view is getting blurred. (This happens only after
    launching the application).
    If I resize the split for first time, that blur is disappearing.

    Am I missing something here? or is there any issue with resizing of
    RBSplitView/NSBrowser.

    *Note: I am using a custom NSBrowserCell; Even I commented the
    drawing code in the custom cell class I am getting that blur.

    Thanks
    Kishore.
  • At 08:22 -0700 19/9/06, <cocoa-dev-request...> wrote:
    > From: Kishore G <kishore...>
    > Date: Tue, 19 Sep 2006 19:27:54 +0530
    > Message-ID: <C02C446C-F1CF-4244-9520-8ED8598106B4...>
    >
    > I am using NSBrowser in an application, I am working on. I have placed that browser in an RBSplitSubView, as in iTunes browsing view.
    > When I drag the vertical scroller displayed for one of the browser's columns, the view is getting blurred. (This happens only after launching the application).
    > If I resize the split for first time, that blur is disappearing.
    >
    > Am I missing something here? or is there any issue with resizing of RBSplitView/NSBrowser.
    >
    > *Note: I am using a custom NSBrowserCell; Even I commented the drawing code in the custom cell class I am getting that blur.

    You'll get faster response from me by posting on the RBSplitView support forum:
    http://www.brockerhoff.net/bb/viewforum.php?f=9

    Anyway, I couldn't reproduce this here. Does the blur happen only with the cell contents or also with the scrollers and columns?

    You might want to check that the NSBrowser has only the center springs set.

    Also, I'm considering writing a RBBrowserView (as a subclass of RBSplitView) to make a simpler API for file browsers. Suggestions are welcome; e-mail me directly if you have any.

    --
    Rainer Brockerhoff  <rainer...>
    Belo Horizonte, Brazil
    "In the affairs of others even fools are wise
    In their own business even sages err."
    Weblog: http://www.brockerhoff.net/bb/viewtopic.php
  • >
    > Am I missing something here? or is there any issue with resizing of
    > RBSplitView/NSBrowser.

    Chances are pretty good that your view isn't aligned on pixel
    boundaries, or you aren't drawing on pixel boundaries in your cell.

    corbin
  • >
    > Also, I'm considering writing a RBBrowserView (as a subclass of
    > RBSplitView) to make a simpler API for file browsers. Suggestions
    > are welcome; e-mail me directly if you have any.
    >

    Please do log bugs and feature requests letting us (Apple) know what
    things you want NSBrowser to do.

    -corbin
  • At 12:29 -0700 22/9/06, Corbin Dunn wrote:
    >> Also, I'm considering writing a RBBrowserView (as a subclass of RBSplitView) to make a simpler API for file browsers.
    > Please do log bugs and feature requests letting us (Apple) know what things you want NSBrowser to do.

    Corbin, I've actually done this for internal use. I've used NSBrowser as a file browser in my previous app and I don't have specific complaints about it, other than its complexity. My thought here was to try to isolate and publish a very simple API that lets people who already use RBSplitView anyway do Finder-like column browsers of hierarchical data without having to code a special cell or anything.

    However, I would like to seize this opportunity to ask people to file feature requests on NSSplitView (Scott Anguish also asked for that some weeks ago). NSSplitView seems to be viewed by developers as so set in stone that nobody believes Apple would consider changing it, but if enough people ask for a new NSModernSplitView (or whatever they want to call it), I think Apple may well do it in some future release.

    I haven't filed any such requests myself, but I have sent in RBSplitView to the proper people in the Cocoa team; they're welcome to use it, or some subset of it, as they see fit.

    --
    Rainer Brockerhoff  <rainer...>
    Belo Horizonte, Brazil
    "In the affairs of others even fools are wise
    In their own business even sages err."
    Weblog: http://www.brockerhoff.net/bb/viewtopic.php