• 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: NSDictionary allValues not mutable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDictionary allValues not mutable
      • From: Trygve Inda <email@hidden>
References: 
 >Re: NSDictionary allValues not mutable (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: How to create secondary Thread that listens to event taps?
  • Next by Date: Re: Framework Major versions
  • Previous by thread: Re: NSDictionary allValues not mutable
  • Next by thread: Re: NSDictionary allValues not mutable
  • Index(es):
    • Date
    • Thread