• 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: Eric Gorr <email@hidden>
  • Date: Tue, 23 Jul 2013 20:43:26 -0400

On Jul 23, 2013, at 3:42 PM, Keary Suska <email@hidden> wrote:

> 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.

I was curious, so I tried out this solution and, strangely enough, it does work.

I simply put a the Fire button inside of another NSView and it all started working normally.

Would love to know the explanation...it seems like this is a reportable bug.



_______________________________________________

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: Abdul Sowayan <email@hidden>
References: 
 >Re: view based NSTable View - button not firing (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Recomputing non-standard Core Data attributes when child MOC is saved?
  • Next by Date: Re: view based NSTable View - button not firing
  • Previous by thread: Re: view based NSTable View - button not firing
  • Next by thread: Re: view based NSTable View - button not firing
  • Index(es):
    • Date
    • Thread