Posts categorized under: cocoa

Toggling NSMenuItems for a NSSearchField Menu Template

The Problem

Creating NSMenus for NSSearchFields involves specifying a particular NSMenu as the NSSearchField's 'Menu Template'. The problem with this is that the actual NSMenu is not used, a copy is made. The result is that its impossible to access the NSMenu or its NSMenuItems through IBOutlets. Thus, modification ...