Choosing correct ArrayController depending on active TableView
Choosing correct ArrayController depending on active TableView
- Subject: Choosing correct ArrayController depending on active TableView
- From: Mikael Wämundson <email@hidden>
- Date: Tue, 21 Feb 2012 11:43:03 +0100
Hi,
I have two ArrayControllers in IB, ArrayControllerA and ArrayControllerB, who's content are setup to show in two TableViews, TableViewA and TableViewB. Pressing a button in the interface will perform some actions on the selected objects from TableViewA or TableViewB. I can of course select objects in either of the two TableViews, but the most recent selected TableView is "active" or "focused".
My question is: how do I, when pressing the button, get information on which TableView is active, hence which ArrayController's content I should perform actions on?
Thanks!
/Mikael
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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