NSDocument: Connecting the menubar to objects?
NSDocument: Connecting the menubar to objects?
- Subject: NSDocument: Connecting the menubar to objects?
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 13 Jun 2005 23:09:28 +0100
I'm wondering how do I connect the menubar to objects, in an
NSDocument based project.
Heres what I have: One nib with a file's owner of NSApplication, and
all the menu targets connected up to the app.
Another nib with a file's owner of MyDocument (NSDocument subclass).
I want the menu to call action targets in the the document.
How do I do this? Must I subclass NSApplication to redirect the stuff
across to MyDocument? But that wouldn't work, would it, because the
NSApplication is already instantiated for me.
So how do I do this? I can't figure it out.
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden