Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disregard Binding to NSArrayController selection



Sorry, just realized there's a very similar thread just a couple posts ago. I'll read that and then repost if I'm still having issues.


On Oct 24, 2007, at 12:00 AM, Greg Best wrote:

I've built a custom view that I'm trying to make a little more IB friendly. I've built it into an IBPalette, and now I'm trying to make it a little more friendly to bindings.

The view generates data plots. It can display multiple data sets simultaneously, and maintains an NSMutableArray of data set objects. Each data set maintains an NSMutableArray of data points. I've successfully bound an NSArrayController to the array of data sets, and I'll deal with the data points later.

When I click on a data set, the view recognizes the data set being selected and highlights it. Multiple data sets can be selected simultaneously. The selection is maintained by the view and an NSMutableArray containing the selected sets (in no particular order).

How do I get the controller to recognize my selection so I could, say, list the data sets in a table and highlight those selected, or modify properties of the selected sets? I'm trying to avoid making the view aware of the controller because I don't want to force an application to use one, which is why I'd like to do this through bindings rather than calling the methods on the controller directly.

Thanks for any help. If I need to make the structure more clear, please ask.
_______________________________________________


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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Binding to NSArrayController selection (From: Greg Best <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.