• 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: Figuring out which values are selected in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Figuring out which values are selected in an NSTableView


  • Subject: Re: Figuring out which values are selected in an NSTableView
  • From: Denis Stanton <email@hidden>
  • Date: Wed, 18 May 2005 17:16:00 +1200


On May 18, 2005, at 4:06 PM, mmalcolm crawford wrote:

Is the paymentController outlet actually connected? If there is no selection, 'selectedObjects' returns an empty array...

Hi mmalc

Thanks for taking an interest

I think you're an inch away from telling me the answer. In fact I'm sure you are telling me the answer, but you're assuming a little more understanding on my part.

I think the problem is that paymentController is not connected or bound properly. I just don't know exactly what object to select, what binding to select and what value to enter.

My MyDocumentNib contains icons for File's owner and NSArrayController
My Window contains an NSTableView with columns.

Can you give this me in really simple terms? I don't know the exact requirement for paymentController outlet to be connected.
Which thing do I select, which binding, and which parameters for that binding?


My app mostly follows the RaiseMan example In Aaron Hillegass' book . Unless I've missed something (quite possible, despite many re-checks) there are only two bindings specified in the example

My NSArrayController has one binding.
	Content Array is bound to File's Owner (MyDocument),
	Model Key Path: payments
where "payments" is an MSMutableArray

In my NSTableView each column has a binding of the form
	Bind to  : NSArrayController
	Controller Key :arrangedObjects
	Model Key Path: paymentDate


Denis

Denis Stanton
Orcon Internet Limited
(09) 480 9299
http://www.orcon.net.nz




_______________________________________________ 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
  • Follow-Ups:
    • Re: Figuring out which values are selected in an NSTableView
      • From: mmalcolm crawford <email@hidden>
References: 
 >Figuring out which values are selected in an NSTableView (From: Andrew White <email@hidden>)
 >Re: Figuring out which values are selected in an NSTableView (From: Scott Anguish <email@hidden>)
 >Re: Figuring out which values are selected in an NSTableView (From: Denis Stanton <email@hidden>)
 >Re: Figuring out which values are selected in an NSTableView (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Trying to solve a to-many relationship?
  • Next by Date: Re: Figuring out which values are selected in an NSTableView
  • Previous by thread: Re: Figuring out which values are selected in an NSTableView
  • Next by thread: Re: Figuring out which values are selected in an NSTableView
  • Index(es):
    • Date
    • Thread