Re: Table object not selected on launch
Re: Table object not selected on launch
- Subject: Re: Table object not selected on launch
- From: Jenny M <email@hidden>
- Date: Tue, 12 Jan 2010 14:40:35 -0800
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 <email@hidden> 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 (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