Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MorphingDragon

macrumors 603
Original poster
Mar 27, 2009
5,159
6
The World Inbetween
I would like to get an NSTextField into an NSToolbar, sort of like the Address Bar in Safari. How could I do this? (I've considering layering a view over it but that defeats the purpose of having a customisable toolbar)

I know that there's the Search Field item, but thats already used for another function.

EDIT: Never mind, I found some Apple sample code.
 
For people who stumble on this topic looking for answers, you need to look at the setView: method in NSToolbarItem.

MT
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.