Re: Rearranging NSOutlineView via drag-and-drop
Re: Rearranging NSOutlineView via drag-and-drop
- Subject: Re: Rearranging NSOutlineView via drag-and-drop
- From: Kyle Sluder <email@hidden>
- Date: Mon, 05 Jan 2015 11:04:24 -0800
On Jan 5, 2015, at 10:48 AM, Charles Jenkins <email@hidden> wrote:
>
> Well, the view-based outline view calls my delegate to get the view pointer for a given item, and in response my delegate dutifully creates one, sets its text and image, and hands it over. But after that the item view I created is owned by the outline view, and I think--but would be happy to be proven wrong--that there no way to ask the outline view to look up that item view pointer for me so I can alter its image. I believe if I wanted to know that pointer at some later time, I'd have to code some way to keep track of it myself.
Use -rowForItem: and -viewAtColumn:row:makeIfNecessary:.
But you might also want to file a Radar on -reloadItem: not actually requesting a new view.
--Kyle Sluder
_______________________________________________
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