Re: NSMutableArray, NSArrayController and NSTableView
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