Re: NSOutlineView: items can't be referenced with path?
Re: NSOutlineView: items can't be referenced with path?
- Subject: Re: NSOutlineView: items can't be referenced with path?
- From: Corbin Dunn <email@hidden>
- Date: Thu, 04 Mar 2010 15:35:07 -0800
On Mar 4, 2010, at 1:20 PM, Laurent Daudelin wrote:
> I've been using NSOutlineView in the past and know the need to provide a unique identifier for "items" used by the outline view.
>
> I'm working on a WebDAV client and thought it would be a good idea to use the full url of an item to identify it. However, after I properly provide the path for items in outlineView:child:ofItem:, when my outlineView:isItemExpandable: is called, item is nil.
>
> Anybody knows what's up with that? I'm using a string formatted as a URL, e.g. "http://192.168.0.1/SomeContent/SomeDirectory/SomeFile".
>
It returns whatever you gave it from child:ofItem: -- you must be passing nil to it.
corbin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden