I have a document based application where I have an outlet in
controllerA of A.nib (which is really MyDocument) and I'd like to
reference controllerB of B.nib. controllerB is subclassed from
NSWindowController where it will either be a sheet or just a window.
I'm using xcode 3.2.1. What I'm trying
Having a problem understanding what I'm doing wrong here. I am calling
a controller from within another controller and when I call
'configureSheet', I expect a sheet to drop down on the main window.
if (!configController) {
configController = [[ConfigController alloc] init];
}
I have an NSPopUpButton of type pulldown with the following structure:
NSMenu
|- NSMenu ---> item-1 // can't read value from sender
|- item-2 // can read sender
|- item-3 // can read sender
When selecting anything off th
Can anyone offer some advice on how to add submenu's on the menu of an
NSPopUpButton. I'm a bit confused as I've heard it can, and then can't
be done. And XCode has it on it's toolbar (e.g. Action -> Add -> New
Target). I just dragged an NSMenu from the palette onto my
NSPopUpButtons main menu and
> Send -[NSMenuItem submenu]. Each level of a hierarchical menu consists of
> two parts. First, the (sub)menu, then the menu items. Repeat for each
> level.
>
I'm still not understanding what I'm doing wrong.
It's like there is no submenu attached to this menuItem. Each time I
try to grab the
> Hierarchical menus can be confusing because there are so many layers to keep
> track of: menus, items, etc. In the code above, log the title of the
> selected item. Is it what you expect?
I do log the titles and they are not what I expect, for example, the
code below produces the output below
Sorry to have to post this again, but I have been unable to understand
why this isn't working.
I have an NSView with an NSPopUpButton within it. The NSPopUpButton is
of type 'Pull Down'. This NSView is in the toolbar of my application,
it looks just like the 'Action' button in the toolbar of XCode
> Here your code indicates that the "Load" menu item was selected, and
> according to everything you show, "Load" does *not* have a submenu, so
> everything is working as expected, unless you aren't selecting "Load", in
> which case your problem isn't the same as you describe.
Apologies, I grab