NSOutlineView update strangeness
NSOutlineView update strangeness
- Subject: NSOutlineView update strangeness
- From: Benjámin Salánki <email@hidden>
- Date: Tue, 13 Dec 2005 15:38:15 +0100
Hello list,
I have a strange problem with NSOutlineView, hopefully someone can
help me.
After dragging an item from the Finder onto the NSOutlineView I want
to to check if an item with the same name already exists. If it does,
I add a number to the end of the name. It all works fine, only the
NSOutlineView always displays the name from the original source.
Even if I programmatically ask the NSOutlineView to reload its data
and redisplay or manually resize the window to trigger a resize,
nothing changes.
But here comes the thing: if I switch to another application, say the
Finder, and then switch back to my app, and then manually resize the
window, the correct names suddenly appear!
Is this some weird caching strangeness of OS X, or am I doing
something completely wrong. I bet on the first one, as this is not my
first time with NSOutlineViews. But I ran out of ideas what I could
do to improve the situation.
I hope someone can help me without the need of posting my code as it
is pretty much and a lot of functions are called, so please please
please someone help me.
Thanks,
Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden