Re: Proper target for table cell view buttons
Re: Proper target for table cell view buttons
- Subject: Re: Proper target for table cell view buttons
- From: Quincey Morris <email@hidden>
- Date: Thu, 07 Apr 2016 12:23:03 -0700
- Feedback-id: 167118m:167118agrif8a:167118sE6huDpl87:SMTPCORP
On Apr 7, 2016, at 10:45 , Fritz Anderson <email@hidden> wrote:
>
> (2) Is your view controller not a table delegate already?
As you say.
I don’t actually know the answer to the original question, but I wonder if the problem is that (for a view-based table view) the cell view is archived in a separate NIB file that’s generated when the storyboard or XIB containing the table view is compiled. Then, there would be a difficulty that objects in the NIB have no way to connect to anything outside the NIB except via File’s Owner, and that’s set to something else.
Perhaps "it works as is” because there’s actually no target, so the action message passes up the responder chain to the view controller. In that case, there isn’t any need to find a way to specify the target explicitly.
_______________________________________________
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