I've updated the NSOutlineView example at <http://www.dot-
app.org/OutlineSample.tgz>.
What's new:
The bug reported by Rich Morin has been fixed, as he suggested.
In controlTextDidEndEditing:, which I'd copied from the earlier
NSBrowser example, a variable that referred to the outline view widget
was misleadingly named $browser. It's been changed to $outline. (Thanks
to Rich for pointing this one out, as well.)
The data source method outlineView:isItemExpandable: was incorrectly
exported as returning an int ('i'), but a BOOL in Cocoa is a char ('c').
Added an outlineView:shouldExpandItem: delegate method, so that
unreadable directories - the ones that were causing problems - cannot be
expanded.
Added code to outlineView:objectValueForTableColumn:byItem: to display
unreadable directories in red text, instead of the default black.
sherm--
Welcome to Rivendell, Mr. Anderson.
- Re: Updated NSOutlineView example Sherm Pendley
- Re: Updated NSOutlineView example Alex Robinson
- Re: Updated NSOutlineView example Sherm Pendley
