Re: stop NSSearchField editing selected row in NSOutlineView
Re: stop NSSearchField editing selected row in NSOutlineView
- Subject: Re: stop NSSearchField editing selected row in NSOutlineView
- From: sqwarqDev <email@hidden>
- Date: Sun, 20 Mar 2016 13:25:45 +0000 (GMT)
Sorry, iCloud UI-wreck stripped the formatting for some reason.
On Mar 20, 2016, at 08:23 PM, sqwarqDev <email@hidden> wrote:
On Mar 20, 2016, at 05:13 PM, Ken Thomases <email@hidden> wrote:rently selected row in the table.
How are you making the outline view "select" the first match?
By clicking on it before clicking in the NSTextField/SearchField.
Show your code.
Well, as I said in my OP, I get the problem with an empty stub. Now that I’ve removed the original NSSearchField and all its associated connections and code, and replaced it with a plain NSTextField, there is no code for that at all. It’s just dragged straight out of the object library, bog-standard, no attributes, bindings or connections. No target, no action. Selecting an item in my table (by mouse clicking) and then giving the NSText/SearchField the focus and hitting return, edits the selected row.
The only thing I can determine so far and which I mentioned earlier is that the textfield ends up calling the outline view's viewForTableColumn method. How I’ve accidentally managed to end up connecting those is presumably where the answer lies. I just can’t see right now how on earth they can be connected. Presumably it’s something to do with the way I’ve wired the OutlineView up in IB.
If I can't make any progress on it over with what remains of today I'll have to shelve it until I've got time to create a sample project that either reproduces the problem (in which case I'll be back!) or helps me to see where I've gone wrong with this one.
Thanks for your response. I’ll keep on digging.
Best
P
_______________________________________________
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
_______________________________________________
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