• 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: NSOutlineView reloadItem:reloadChildren: selection bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSOutlineView reloadItem:reloadChildren: selection bug
      • From: Kevin Ballard <email@hidden>
References: 
 >Re: NSOutlineView reloadItem:reloadChildren: selection bug (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: New book on its way!!!
  • Next by Date: Re: NSOutlineView reloadItem:reloadChildren: selection bug
  • Previous by thread: Re: NSOutlineView reloadItem:reloadChildren: selection bug
  • Next by thread: Re: NSOutlineView reloadItem:reloadChildren: selection bug
  • Index(es):
    • Date
    • Thread