Re: group row custom drawing nstableview
Re: group row custom drawing nstableview
- Subject: Re: group row custom drawing nstableview
- From: "Rick C." <email@hidden>
- Date: Thu, 24 May 2012 12:09:05 +0800
Thanks Corbin for the reply. Ok I will continue with NSTableRowView and see if I can get the floating right this time. I'll let you know thanks again!
rc
On May 24, 2012, at 12:10 AM, Corbin Dunn wrote:
> Hi Rick,
> On May 22, 2012, at 9:14 PM, Rick C. <email@hidden> wrote:
>
>> Hi,
>>
>> I'm having some trouble doing a custom drawing for my group row in a view-based nstableview. First of all I subclassed NSTableRowView is this correct?
>
> Yes, that is correct.
>
>> And if so the problem I'm having is to recreate the floating effect which normally happens automatically if using a standard NSTableCellView. I'm able to get the isFloating property, but I'm not sure what's the correct way to make the row float (setAlpha?) without making the text "float" as well? Any pointers to get me going in the right direction here would be much appreciated. Thanks!
>
> I'm not sure what you mean...you simply can draw (override the drawBackground method) with an non-1.0 alpha color and the row will appear translucent (only when floating).
>
> corbin
>
>>
>> rc
>> _______________________________________________
>>
>> 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