Re: NSOutlineView update strangeness
Re: NSOutlineView update strangeness
- Subject: Re: NSOutlineView update strangeness
- From: Benjámin Salánki <email@hidden>
- Date: Tue, 13 Dec 2005 18:00:53 +0100
Okay, I found my mistake :D
I was so fixed on the baseName method of the data source that I
forgot to set the name: key's value for the items.
Taking an hour off and getting tips from others really helps if you
are stuck on a single problem :D
Thanks for the tip with the data source.
Regards,
Ben
On Dec 13, 2005, at 5:25 PM, Corbin Dunn wrote:
Ben,
It is hard to say what is wrong, but the problem probably isn't in
NSOutlineView but rather your datasource.
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.
One can drag text from the pboard, or a filename. It sounds like
you are dragging filenames and doing something with them in your
app, and displaying them. The problem is probably due to how you
display the filenames, and/or get the display name, and/or rename a
file (if that is what you are really doing --- again, it is hard to
say from your description).
-corbin
_______________________________________________
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