• 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
Setting selections in NSArrayController from view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting selections in NSArrayController from view


  • Subject: Setting selections in NSArrayController from view
  • From: Adam Behringer <email@hidden>
  • Date: Mon, 8 Jan 2007 15:14:19 -0800

Hello,

I am trying to build a custom view that displays a set of objects managed by an NSArrayController, similar to NSTableView.

I can't figure out how NSTableView is able to set the currently selection in the NSArrayController when the only binding is arrangedObjects.

It makes sense to me that binding arrangedObjects.description to a table column allows the objects to display their description in the table view, but there is something else going on here that allows the table view to change the selection in the array controller when a user clicks a row. There isn't a binding from the table view to the NSArrayController...

How does this work behind the scenes?

Or, does anyone know of sample code that shows custom views working with NSArrayControllers?

Thanks for your help.

Adam


_______________________________________________

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Setting selections in NSArrayController from view
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Why would -[NSString dataUsingEncoding:allowLossyConversion:] throw exception?
  • Next by Date: Re: Setting selections in NSArrayController from view
  • Previous by thread: Re: Why would -[NSString dataUsingEncoding:allowLossyConversion:] throw exception?
  • Next by thread: Re: Setting selections in NSArrayController from view
  • Index(es):
    • Date
    • Thread