communicating between nibs

2009-11-08 Thread SRD
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

can't get sheet to appear

2009-11-10 Thread SRD
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]; }

can't read NSMenuItem titles from NSMenu's below first NSMenu

2009-11-12 Thread SRD
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

NSPopUpButton submenu's

2009-11-13 Thread SRD
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

Re: NSPopUpButton submenu's

2009-11-14 Thread SRD
> 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

Re: NSPopUpButton submenu's

2009-11-16 Thread SRD
> 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

unable to select submenu item

2009-11-18 Thread SRD
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

Re: unable to select submenu item

2009-11-18 Thread SRD
> 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