Mailing Lists: Apple Mailing Lists

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

Re: Bindings & IBOutlets



What does it do?

I believe the outlet for NSArrayController (*personController) is declared in Chapter 7, when undo/redo is added to RaiseMain. But this outlet isn't actually used until later chapters. So its introduction in Chapter 7 is slightly confusing: it's declared there, but not used.

Also in Chapter 7, the outlet *personController appears to be unrelated to the change of content array for NSArrayController. A binding is used to tell NSArrayController to use the *employees array from MyDocument class (instead of its own "invisible" array.)

So the *personConroller outlet is declared but not used in Chapter 7. However, in subsequent chapters the outlet does get used, because the MyDocument class needs to reference the NSArrayController instance.

See chapter 8 when the table data is archived on page 159. Also see chapters 12 where a reference to NSArrayController's selectedObjects is obtained to delete highlighted rows in the table.


On Jan 28, 2005, at 8:36 PM, Richard Patterson wrote:

Is "Cocoa bindings eliminates the need to reference a nib file's user interface objects by IBOutlet", why does Aaron Hillegass's RaiseMan_B solution still have an IBOutlet for the NSArrayController in his MyDocument.h? What does it do?

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Bindings & IBOutlets (From: Richard Patterson <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.