[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _control_view stuff...
From: |
Matt Rice |
Subject: |
Re: _control_view stuff... |
Date: |
Tue, 28 Oct 2008 04:28:45 -0700 |
On Tue, Oct 28, 2008 at 3:43 AM, Matt Rice <address@hidden> wrote:
> i've always thought of cells the other way, views tell them when/where
> and what to draw, so the idea of the cell having its setStringValue:
> method called, and then telling the view that it should redraw the
> cell seems fairly weird to me
sorry to reply to myself (again) but i forgot some stuff/found some
better documentation,
from the documentation of the controlView method here
http://docs.sun.com/app/docs/doc/802-2112/6i63mn60o?l=ja&a=view#01.Classes-8
"For example, the subclasses of NSActionCell defined by the
Application Kit invoke this method in order to
send the NSControl a message such as updateCellInside:."
so that to conflict with the idea setStringValue: is doing something
wrong by calling the -updateCell method (ignoring the inside part
since either would lead to the segfault)...
another idea is that drawWithFrame:inView: could reset the
_control_view on exit but that seems counter to the documentation that
-controlView returns the view in which the cell was last drawn...