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: "Sumner Trammell" <email@hidden>
- Date: Fri, 8 Aug 2008 20:28:17 -0400
- 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=r6A6nXQhW2zeUpXRfjhEHzPMNjChmtGlh0KDQqa8Pcc=; b=WMvyk9LYC3y9IktlOfJaR4lEpM9dR7McBXvXfPMaVv0uqI8Z6twIKZpzLGV4ziwoqv YBdN+9srtITKTYApCpPE1CTCS7lvMHtNDVd9b37FQ2Pt/JE2TLCfgVoV/F/SMY/ewApB VJZDKD8BxzgKjjFY3Lt4H5jSEIQeHTZrOtm0U=
- 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=kXKksThPIYxjVqzgxqRJ3iX6szatoJZi7rVRoqgOuSTjd59iph+NYVT98hbQEKwlp+ /KsN9DkNvctcfWKDeU2zJJMvRSenhEzzEO0dkw+2cVGDunbVaBCHq/hN74Yh4ndBM5kW BxhRRZkY/KnranwB7GAtDkwZRcIR3Cwlb8OFA=
Thanks Shawn. Another case of "Oh, now I know when to use that
mechanism I've heard so much about."
-s
On Fri, Aug 8, 2008 at 1:02 PM, Shawn Erickson <email@hidden> wrote:
> 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.