Thanks to a hint from Laurent and a point to the right part of
NSArrayController's documentation, I have a solution.

I placed this line of code in AppDelegate's awakeFromNib:
-----
[myArrayController setSelectionIndexes:[NSIndexSet indexSet]];
-----

and UN-checked the "Avoid Empty Selection" checkbox in IB for the
arraycontroller.

Works great now..



On Mon, Jan 11, 2010 at 11:28 PM, Jenny M <safflo...@gmail.com> wrote:

> When my application launches, I have a custom BackgroundView that takes the
> role of first responder. Within the main window, I have a NSScrollView that
> contains core data objects in an NSArrayController. I want the objects to
> load in the table on launch, but I don't want any objects to be *selected*
> upon launch. I've looked in IB and the docs and can't figure out which
> attribute to set to make this possible. Thoughts?
>
> Thanks!
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to