On 10 Oct 2013, at 9:51 PM, Michael Babin <mba...@orderndev.com> wrote:

> From your description, it appears that you're presenting a window/sheet when 
> the window is asked to close (Save/revert changes?). When the revert option 
> is selected, what changes occur to the underlying data supporting the outline 
> view?

The property holding the data is updated, and reloadData is called.
> 
> Once the window/sheet is dismissed, it looks like the main/document window is 
> asked to redraw its contents and the problem occurs there (redrawing the 
> outline view). That probably occurs before the -windowWillClose: call takes 
> place.

Right, that looks to be where it happens.

So before it happens, outlineView:objectValueForTableColumn:byItem: is being 
called regularly, and is returning my object (a file wrapper). Then when I 
click Revert in the dialog, I see reloadData called, then 
outlineView:objectValueForTableColumn:byItem: is called again, but this time 
the item is entirely unrelated to the outline view. And there shouldn't be an 
item at that stage.

-- 
Shane Stanley <sstan...@myriad-com.com.au>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to