• 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: Proper target for table cell view buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Proper target for table cell view buttons
      • From: David Catmull <email@hidden>
References: 
 >Proper target for table cell view buttons (From: David Catmull <email@hidden>)
 >Re: Proper target for table cell view buttons (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: How to stop an Application being Activated
  • Next by Date: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings
  • Previous by thread: Re: Proper target for table cell view buttons
  • Next by thread: Re: Proper target for table cell view buttons
  • Index(es):
    • Date
    • Thread