Re: NSTableView with Custom Views as Cells Redraw Problem
Re: NSTableView with Custom Views as Cells Redraw Problem
- Subject: Re: NSTableView with Custom Views as Cells Redraw Problem
- From: "Carmen Cerino Jr." <email@hidden>
- Date: Mon, 3 Nov 2008 16:13:47 -0500
I was messing around in IB by turning off "draw background", which
also turns off copy on scroll, on the NSScrollView that contains the
table. I am not exactly sure what this means yet, but I am in the
middle of investigating this new discovery. It may be linked to your
suggestion.
Thanks again for your help!
On Mon, Nov 3, 2008 at 4:05 PM, Corbin Dunn <email@hidden> wrote:
>
> On Nov 3, 2008, at 12:35 PM, Carmen Cerino Jr. wrote:
>
>> Basically I have an array of views for every item in my data source,
>> and my table uses a custom cell for its data cell. This cell has a
>> weak reference to one of the views in the array, and it is set every
>> time during the tableWillDisplayCell delegate method of the TableView.
>> When the cell goes to draw itself it will set its view's frame to
>> match the cell's frame, and it checks to see if its view's superview
>> matches the control view of that cell. If they do not match the view
>> is added to the control view. The issue I am having is when I go to
>> resize the window, it appears the views are drawing over themselves.
>> Here a link to a screen capture of the issue in action:
>> http://screencast.com/t/Fbc2WrZsG
>>
>
> This is probably live-resize conflicting with it. Override -drawRect: in an
> NSTableView subclass, and call super (that's it). That help?
>
> .corbin
>
>
>> Any help would be greatly appreciated! Please let me know if you would
>> like to see my code. I am following this tutorial on pulling of this
>> custom cell effect: http://www.joar.com/code/body.html
>
>
--
Carmen C. Cerino
University of Akron ACM Chapter President
University of Akron Aux. Services Student Assistant
Cell: 440.263.5057
AIM: UAcodeweaver
[ I <3 MACs ]
_______________________________________________
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