Re: NSTextFieldCell Action Method Not Reaching Delegate?
Re: NSTextFieldCell Action Method Not Reaching Delegate?
- Subject: Re: NSTextFieldCell Action Method Not Reaching Delegate?
- From: Jens Alfke <email@hidden>
- Date: Mon, 11 Jul 2011 20:52:04 -0700
On Jul 9, 2011, at 1:14 AM, Vik Rubenfeld wrote:
> I have an NSOutlineView with five columns. I need to know which column contains the NSTextFieldCell which is currently being edited. To do that, I thought I would connect the action method of the NSTextFieldCell to a method in the NSOutlineView's delegate, which could check the Tag of the NSTextField, to determine what column that field was in. However, the action method I set up in the delegate, is never called.
>
> Question 1) Is there a better way to do this?
Yup. Use the -editedColumn property of the outline view. (It’s easy to forget that NSOutlineView inherits from NSTableView and you can use the inherited methods!)
—Jens_______________________________________________
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