Re: NSOutlineView reloadItem:reloadChildren: selection bug
Re: NSOutlineView reloadItem:reloadChildren: selection bug
- Subject: Re: NSOutlineView reloadItem:reloadChildren: selection bug
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 15 Apr 2004 10:23:06 -0400
on 2004-04-15 8:58 AM, Kevin Ballard at email@hidden wrote:
>
>> And setting the selection myself won't work because it will select
>
>> row 1 then the old row again, but each time I change the selection
>
>> the entire window changes its content view, so the view will be
>
>> changed twice when it shouldn't be changed at all.
>
>
>
> A work around would be to set a flag saying that your content view
>
> should not be refreshed before removing your item, and reseting this
>
> flag after the selection. Before refreshing your content view, you
>
> would check this flag.
>
>
I'd rather not require that. I'll do it if I have to, but I'd like to
>
find some other way.
Are you sure you're calling -itemAtRow: and -rowForItem: as appropriate, to
make sure you're passing the right index to the right methods? I haven't
seen any of the problems you're describing in my outline view.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.