Re: view based NSTable View - button not firing
Re: view based NSTable View - button not firing
- Subject: Re: view based NSTable View - button not firing
- From: Andy Lee <email@hidden>
- Date: Wed, 24 Jul 2013 08:49:29 -0400
This sounds familiar. I remember something wasn't working in a view-based table and I was baffled until I read somewhere that I needed to set its delegate. Usually I make a note to myself about stuff like this, but I can't find the exact link that led me to this discovery. Perhaps one of these:
<http://stackoverflow.com/questions/12266701/how-to-trigger-an-action-from-a-nstablecellview-in-view-based-nstableview-when-u>
<http://forums.bignerdranch.com/viewtopic.php?f=183&t=3896>
It may be worth filing a documentation bug if not an actual API bug.
--Andy
On Jul 24, 2013, at 1:16 AM, Abdul Sowayan <email@hidden> wrote:
> Hi Kyle,
>
> I actually did use NSTableCellView. My button didn't work until I hooked up the delegate outlet.
>
> Abdul
>
> Sent from my iPhone
>
>> On Jul 24, 2013, at 1:14 AM, "Kyle Sluder" <email@hidden> wrote:
>>
>>> On Tue, Jul 23, 2013, at 12:42 PM, Keary Suska wrote:
>>>
>>> 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.
>>
>> Wouldn't it be better to use an NSTableCellView instead of a plain
>> NSView?
>>
>> --Kyle Sluder
>>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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