Re: How a Controller in MainMenu.xib can send actions to a document object

2008-10-10 Thread Michael Ash
On Thu, Oct 9, 2008 at 10:24 PM, Louis Demers <[EMAIL PROTECTED]> wrote: > I'm working on a Document Based app > > My app has in its MainMenu.xib a controller that monitors a usb devices. I > want this controller to send actions to the front most document. I tried > many thing in the archives, inc

Fwd: How a Controller in MainMenu.xib can send actions to a document object

2008-10-09 Thread Kyle Sluder
On Thu, Oct 9, 2008 at 10:24 PM, Louis Demers <[EMAIL PROTECTED]> wrote: > [[NSApplication sharedApplication] sendAction:@selector(usbEvent:) > to:(id)nil from:nil]; // From nil because this is just a c procedure Don't do this. It's using the responder chain; what if your document's window isn't

How a Controller in MainMenu.xib can send actions to a document object

2008-10-09 Thread Louis Demers
I'm working on a Document Based app My app has in its MainMenu.xib a controller that monitors a usb devices. I want this controller to send actions to the front most document. I tried many thing in the archives, including 1) in my controller in the MainMenu.xib [[NSApplication sharedAppli