Re: Control-dragging from menu item in MainMenu.nib to File's Owner object in MyDocument.nib
- Subject: Re: Control-dragging from menu item in MainMenu.nib to File's Owner object in MyDocument.nib
- From: "Shawn Erickson" <email@hidden>
- Date: Fri, 8 Aug 2008 10:02:00 -0700
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UODfmm7UxMn5wv7oBYSmiN34tSj7nLmtD6uU1CsaxMk=; b=OFjH1uk32inWU9PIMKOtqGkYyNyTwWpimUOo7kho5BQyMkD4qRLY/gVyf3FwBygX4a PQDkMSDmaGaD7kcPUKyVMFzozJ/6VApHw6pAUshpFZTAp2BVAJuEW5xIZNsg9t6Vb0Wj 9yA7i1Lp47vzMYUvH/nRMxUqrz1HgMZ3dg7JE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Xf2E8CHBNFDuKWMlf1n9u3wGAhViOBXCztafNqGlLvbFnd8jjesTd+OQVGOr5v0RWr YgGRet3rInaM9Pd4oz+KX+4nGXMG4XcHaC0SgSecQQ/cujkzXe7Cl+Bdxf6Nilm44R0M 5tXeW5y3eU0VomDuC1RszfSfw67FsEDsg71+4=
On Fri, Aug 8, 2008 at 8:52 AM, Sumner Trammell
<email@hidden> wrote:
> Hi, my document-based app, created from the Xcode document-based app
> template, now needs a new item added to its File menu.
>
> Menu items are, of course, in MainMenu.nib, and the rest of the app's
> widgets, like the main window, etc. are in MyDocument.nib.
>
> I can't control-drag from my new menu item in MainMenu.nib to the
> File's Owner object in MyDocument.nib. It makes sense to me that I
> can't, but it never occurred to me that I couldn't. Does that make
> sense?
>
> I'm not sure what to do to reshape my design. Would this be a prime
> reason to subclass NSDocumentController? Or am I just missing
> something in IB?
First Responder and the Responder Chain... learn it, live it, love it
<http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/chapter_2_section_5.html>
<http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/chapter_2_section_6.html>
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/IB_UserGuide/ApplicationBasics/chapter_3_section_2.html#//apple_ref/doc/uid/TP40005344-CH3-SW15>
etc.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.