Targeting nil in Interface Builder menu item

2008-04-23 Thread Rick Mann
I have an Import command in my File menu that can apply to both the current document, and the app as a whole. I want it to send the - import action to the main window's document first, and if that doesn't exist, send it to the app. This seems like an application of an action sent to a nil

Re: Targeting nil in Interface Builder menu item

2008-04-23 Thread Graham Cox
Just ctrl-drag the link between the item and the first responder object in the nib main window. First responder stands for nil. hth, G. On 23 Apr 2008, at 4:08 pm, Rick Mann wrote: I have an Import command in my File menu that can apply to both the current document, and the app as a

Re: Targeting nil in Interface Builder menu item

2008-04-23 Thread Rick Mann
On Apr 22, 2008, at 11:13 PM, Graham Cox wrote: Just ctrl-drag the link between the item and the first responder object in the nib main window. First responder stands for nil. Well, now, that was obvious. For some reason, I was fixated on File's Owner, and I knew that wasn't right. I

Re: Targeting nil in Interface Builder menu item

2008-04-23 Thread Graham Cox
On 23 Apr 2008, at 4:36 pm, Rick Mann wrote: Well, now, that was obvious. For some reason, I was fixated on File's Owner, and I knew that wasn't right. I *knew* there was a First Responder object in there, but it just wasn't registering. Round these parts they call that a brainfart.