Almost there: does anyone have an idea why a searchfield wouldn't show up in 
the toolbar? The code is pretty much standard:

  SearchField = New NSToolbarSearchField
  SearchFieldItem = New NSToolbarItemMBS("Search")
  SearchFieldItem.paletteLabel = "Search"
  SearchFieldItem.view = SearchField
  
  dim theToolbar as NSToolbarMBS = self.NSToolbarMBS
  dim items() as NSToolbarItemMBS = theToolbar.items
  
  for each currentItem as NSToolbarItemMBS in items
    if currentItem.label = "Search" then
      
      currentItem.view = SearchField
      currentItem.maxSize = NSMakeSizeMBS(300, MainToolbarNSSearchFieldHeight)
      currentItem.minSize = NSMakeSizeMBS(150, MainToolbarNSSearchFieldHeight)
      
    end if
  next

I can see with a breakpoint that the searchfield is added. Everything is not 
nil. The toolbar has the search toolbutton. But there is nothing to see.

This window has it all: windowsplitters, pagepanels, containers, containers in 
containers. This is THE most complicated part of my application.

When trying to make an example I can see a timing issue. The window uses 
super.constructor, which then calls the line

  dim theToolbar as NSToolbarMBS = self.NSToolbarMBS

at a point when the toolbar seems to be nil.



Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to