• 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: NSMutableArray, NSArrayController and NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray, NSArrayController and NSTableView


  • Subject: Re: NSMutableArray, NSArrayController and NSTableView
  • From: Scott Stevenson <email@hidden>
  • Date: Wed, 23 Mar 2005 10:39:02 -0800


On Mar 23, 2005, at 10:12 AM, Zdzislaw Losvik wrote:

I have been trying to setup cocoa bindings for quite a while with no luck. This simple setup includes NSMutableArray, NSArrayController and NSTableView connected by binding on a regular basis.

I use NSMutableArray and call mutableArrayValueForKey: to obtain a mutable proxy of it. Then I just call addObject: and I run into this problem:

Whenever an object is added, NSTableView unnecessarily scrolls to make selection visible what is not desired behavior. How to prevent this behavior?

Try:

[arrayController setSelectsInsertedObjects: NO];

You can probably do this via a checkbox in Interface Builder too.

  - Scott

--
http://treehouseideas.com/
http://theocacao.com/ [blog]

_______________________________________________
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


References: 
 >NSMutableArray, NSArrayController and NSTableView (From: Zdzislaw Losvik <email@hidden>)

  • Prev by Date: Re: [OT] How to be a real programmer
  • Next by Date: Re: loop efficiency & messages
  • Previous by thread: NSMutableArray, NSArrayController and NSTableView
  • Next by thread: "special character" item in menu
  • Index(es):
    • Date
    • Thread