Re: Bindings & IBOutlets
Re: Bindings & IBOutlets
- Subject: Re: Bindings & IBOutlets
- From: Jeremy French <email@hidden>
- Date: Mon, 31 Jan 2005 15:51:00 -0500
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:
This email sent to email@hidden