Cocoa: getting a Table View cell to send action messages
Posted
by underthetable
on Stack Overflow
See other posts from Stack Overflow
or by underthetable
Published on 2010-03-28T00:23:13Z
Indexed on
2010/03/28
0:33 UTC
Read the original article
Hit count: 617
I'm really having trouble getting a Cocoa Table View cell to send action messages.
At the most basic level, in IB there is an action assigned for the NSTextViewCell object, and after editing and pressing Return nothing happens.
So I have an IBOutlet hooked up to the NSTextViewCell, and have been experimenting with NSActionCell messages to it. But the Table View seems to pretty much just ignore them.
I've also tried subclassing NSTextViewCell, but the methods I'm seeing all look like they want to pass values to the object from somewhere, not return a value from inside the object to configure its behavior.
I'm pretty new to programming and Cocoa -- can someone explain each thing that needs to be overridden and how and where to do it?
© Stack Overflow or respective owner