Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Raglan T. Tiger
> On Nov 11, 2015, at 3:58 PM, Graham Cox wrote: > > If it’s not working, you might have done something elsewhere that is > preventing it working as it should. without going into reasons why I was returning nil in objectValueForTableColumn returning a value from my dataSource makes it work

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Graham Cox
> On 12 Nov 2015, at 9:52 AM, Raglan T. Tiger wrote: > > How do I put the current string from the item into the edit field ? > If you have implemented the dataSource protocol, the value of the text field should be already set. When you start editing, that value is automatically copied into t

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Raglan T. Tiger
> On Nov 11, 2015, at 2:38 PM, Graham Cox wrote: > > You don’t need to subclass NSOutlineView here. Double-clicks are already > detected and trigger the -doubleAction: be sent to the target of the control. > This is usually sufficient. If you leave everything standard, then editing > text cell

Re: Set editable string into NSTextFieldCell

2015-11-11 Thread Graham Cox
> On 12 Nov 2015, at 7:19 AM, Raglan T. Tiger wrote: > > n my cell based NSOutlineView subclass I implement -mouseDown where I check > for double-click. I am able to set a placeholder string. > > How does one set the NSText object with a string value that can be edited? You don’t need to sub