Re: NSDictionary allValues not mutable
Re: NSDictionary allValues not mutable
- Subject: Re: NSDictionary allValues not mutable
- From: Trygve Inda <email@hidden>
- Date: Tue, 19 Oct 2010 21:27:31 +0000
- Thread-topic: NSDictionary allValues not mutable
> I’d say the best solution is the one that Ken described. Implement the to-many
> accessors such as countOf<property>, objectIn<property>AtIndex:,
> insertObject:in<property>AtIndex:, and so forth. Then the underlying storage
> can be an NSDictionary, a skip list, or whatever you want, and as long as your
> accessors are abstracting it away properly, the rest of your code will neither
> know nor care what is actually being used to store your data.
I have done this and it works nicely except...
I only allow one item in my NSArrayController / NSTableView to be selected.
If I use the mouse to click and drag off the edge of the NSTableView it
scrolls fine, but if I use the keyboard, I am able to move the selection off
the edge of the table... The selection moves ok, but the table doesn't
scroll to keep the selection visible.
Any idea why?
_______________________________________________
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