• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings & IBOutlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: writing to a file...
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Bindings & IBOutlets
  • Next by thread: NSController: Connections vs Bindings
  • Index(es):
    • Date
    • Thread