Getting Search into the toolbar

  • I'm trying to make a user interface similar to mail, tri-panel,
    sources, list & detail. Most of that is fine, but there are a couple
    of points I'm sticking on.

    The major one at the moment is getting a search field in the area of
    the window occupied by the toolbar. IB3 doesn't allow me to do this
    directly, so I'm looking for ideas.

    Do I have to make a custom NSToolbarItem to do this, and embed the
    search in there?

    The other one is the buttons at the bottom of the sources list, but I
    can approximate that for now. This toolbar one rather mucks up the
    whole layout.
  • > The major one at the moment is getting a search field in the area
    > of the window occupied by the toolbar. IB3 doesn't allow me to do
    > this directly, so I'm looking for ideas.
    >

    You can create a separate NSView in IB and simply put the SearchBox
    in there. Then you can programmatically  add that view to your
    toolbar. However, I have not yet touched IB3, so there might be a
    simpler way that I am not aware of.

    Cheers, Patrick
  • Paul Sargent <psarge...> wrote:

    > The major one at the moment is getting a search field in the area of
    > the window occupied by the toolbar. IB3 doesn't allow me to do this
    > directly, so I'm looking for ideas.
    >
    > Do I have to make a custom NSToolbarItem to do this, and embed the
    > search in there?

    No; you click twice on the toolbar area in your window, this will open
    the toolbar configuration sheet; you can drag a search field into the
    Allowed Toolbar Items box, and from there into the toolbar.

    See

    <http://developer.apple.com/documentation/DeveloperTools/Conceptual/
    IB_UserGuide/BuildingaNibFile/chapter_4_section_4.html#//apple_ref/
    doc/uid/TP40005344-CH11-DontLinkElementID_29
    >

    for more information.

    --
    Stefan Haller
    Ableton
    http://www.ableton.com/
  • On 19 Nov 2007, at 21:01, Stefan Haller wrote:

    > No; you click twice on the toolbar area in your window, this will open
    > the toolbar configuration sheet; you can drag a search field into the
    > Allowed Toolbar Items box, and from there into the toolbar.

    Oh wow, you can put all sorts of stuff in there.

    Presumably it's anything based on NSView as I've just put an OpenGL
    view in there (although I doubt I'll ship that)
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today