I have NSOutlineView and I don't know how to disable unselect row in it. It's problem when I click into NSOutlineView where isn't any cell, selected row is unselected. Is there any way, how to keep selected row when someone click into NSOutlineView? But It has to work normally when someone click onto other cell. Thanks.
In Interface Builder go to the Attribute inspector, under the Table View section make sure Empty is not checked.
Related
I would like to add a button next to the disclosure button like in Mail.app.
And I don't want to do it like this in Photos.app.
I had a look at the answers in this question but they are about customising existing disclosure buttons which I do not wish to modify. I just want to add a button next to it and not for every group item. I believe it has to be done programmatically.
I tried adding a button on storyboard and place it on the right of the NSTableCellView and the disclosure button overlap it. So I think it should not be done on storyboard.
I need expand/collapse feature to show/hide rows in SlickGrid.
So to implement this feature, I have a expand/collapse icon on the Grid header row. And by pressing it, it should Show/Hide all data of the grid (Toggle Visibility).
The feature I want to implement is exactly same as grouping where parent row can be expanded/collapsed by clicking on **+ or -** icon. But without applying grouping.
Should be pretty easy. Just find the viewport div and toggle its visibility on click. Everything else should collapse around it.
I have a view-based outline view (OSX 10.7). Clicking on an item selects it, as usual. Double clicking allows editing of the textfield it contains. However, when I'm done editing the textField, the row's highlight disappears. The outlineView still thinks the row is selected, and sending that row a drawSelectionInRect message doesn't change its appearance. Telling the outlineView to again select the row also doesn't change its appearance. Only by again clicking on the row can I get the highlight to reappear. Any idea what's going on?
My fault. I'm observing changes to the managedObjectContext, and was reloading the entire tree when individual items changed: by correcting this to reload only the affected item, things work as they should.
I have a standard OutlineView on the left pane and Tableview on the right page. The problem is ,when I add a new item to the outlineview using a action, what I want to happen is,
Add an item to the outlineview
Put it in edit mode immediately and give it focus.
When the user had finished editing it, then save the new outline view item to the db.
I can add an new item, but could not put it in the edit mode immediately, any idea how to do it?
Thanks in advance.
I am using Core Data to manage objects and using a NSTableView to display those objects. The table columns are binded to objects' properties through a NSArrayController.
When users click the delete button, all selected objects in the NSTableView will be deleted. Then only remained objects are left in the NSTableView.
This works smoothly. But after deleting selected rows, NSTableView does not select a row automatically. As a result, users have to type once arrow key or use mouse to select a new row.
So my question is: how could I make NSTableView select the next or previous row after selected rows are deleted?
Of course, I could just select a left row programmatically after deleting. But I am wondering whether there is a more elegant way to achieve this.
Thanks