strangetimes
strangetimes

Reputation: 5193

XCode style search field in NSMenu?

I'm trying to replicate the Menus displayed in XCode where you can begin typing and it will display a search field and then filter on the keyword entered. Can anyone point to a resource where it's implemented as an example or some clue as to what one needs to do?

Upvotes: 1

Views: 653

Answers (1)

Sheen Vempeny
Sheen Vempeny

Reputation: 826

You can set a View to NSMenuItem . In your case , you can assign a view with NSTextField.

Please refer : https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSMenuItem_Class/#//apple_ref/occ/instp/NSMenuItem/view

Upvotes: 1

Related Questions