• 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: view based NSTable View - button not firing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: view based NSTable View - button not firing


  • Subject: Re: view based NSTable View - button not firing
  • From: Keary Suska <email@hidden>
  • Date: Tue, 23 Jul 2013 13:42:50 -0600

On Jul 22, 2013, at 8:31 AM, Abdul Sowayan wrote:

> I’m am using a view based NSTableView. In the NSTableViewCell, I place a button and hook up its action/target to the App delegate. The problem is, it doesn’t seem to work. If I place the button outside of the NSTableView, it works just fine. I am clueless, any feedback would be greatly appreciated.
>
> I’ve attached a sample program that shows this issue.

I didn't look at the attachment but is the button the "root" view for the cell, or is it a subview? I ask as I have encountered that even when you set up a table view as view-based that it will still behave in strange ways as if it were cell-based whenever a cell's root view has an NSCell that is acceptable in a cell-based table view, such as text fields and buttons. If this is the case, the solution is to embed your button in an NSView.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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: view based NSTable View - button not firing
      • From: Kyle Sluder <email@hidden>
    • Re: view based NSTable View - button not firing
      • From: Eric Gorr <email@hidden>
  • Prev by Date: Re: Full screen
  • Next by Date: Re: Disabling Hot Corners
  • Previous by thread: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
  • Next by thread: Re: view based NSTable View - button not firing
  • Index(es):
    • Date
    • Thread