• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextFieldCell Action Method Not Reaching Delegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextFieldCell Action Method Not Reaching Delegate? (From: Vik Rubenfeld <email@hidden>)

  • Prev by Date: Re: Gdata Google calander
  • Next by Date: Re: NSTextFieldCell Action Method Not Reaching Delegate?
  • Previous by thread: NSTextFieldCell Action Method Not Reaching Delegate?
  • Next by thread: Re: NSTextFieldCell Action Method Not Reaching Delegate?
  • Index(es):
    • Date
    • Thread