Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings between nib files (again)



I am new to cocoa development, and I'm trying to understand the best (least amount of code) way to communicate between views in one nib file and controllers in another.

I have the simple and very standard task of getting the main menu items to act on a document object in a multiple document app. However, the menu and document are in different nib files.

The IBTips document explains how to do this using actions and the first responder chain. My question is... Is there a cool/efficient/ cocoa-zen way to do this with bindings?

I've seen a couple postings on this, and it doesn't seem to be very straightforward. Did Apple intend bindings only to be useful *within* a nib file?

If the above problem can be solved with bindings, then I have hope for the inverse problem... How do I get the menu state to update based on my document controllers?
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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.