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: Sat, 26 May 2012 12:30:09 +0800
Was able to get it working 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