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 key?

> [[NSDocumentController sharedDocumentController] currentDocument];
>
> but that always return null

Then you have a problem with the document framework.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to