Re: Newbie Q : connections between different nibs
Re: Newbie Q : connections between different nibs
- Subject: Re: Newbie Q : connections between different nibs
- From: "A.M." <email@hidden>
- Date: Thu, 22 Jun 2006 12:56:23 -0400 (EDT)
On Thu, June 22, 2006 12:13 pm, email@hidden wrote:
> Hello all,
>
>
> let me ask a very naive question : I have an IBAction "paintItBlack" on a
> window in MyDocument.nib that I should like to be triggered by the menu
> item "Paint It Black" in the main menu (which is therefore in
> MainMenu.nib). The problem is that they are in different nibs so they
> canĀ“t be connected. What is the usual solution ? Should I create a new
> nil-targeted action in FirstResponder (even though this action has no
> other reason to be made "nil-targeted") ? Should I instantiate MyDocument
> in MainMenu.nib ?
You should read up on the "responder chain". This is how most other menu
items function.
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CoreAppArchitecture/chapter_7_section_6.html
_______________________________________________
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