Hi Eric, I actually fixed this. In the nib file, I connected the delegate of the table view to the app delegate. This fixes it. I don't know why.
Thanks, Abdul Sent from my iPhone > On Jul 23, 2013, at 8:43 PM, "Eric Gorr" <mail...@ericgorr.net> wrote: > >> On Jul 23, 2013, at 3:42 PM, Keary Suska <cocoa-...@esoteritech.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com