FROM : j o a r
DATE : Thu Mar 06 12:24:49 2008
On Mar 6, 2008, at 8:32 AM, Ken Ferry wrote:
> Or can you do your final setup in -viewWillDraw?
>
> For some kinds of problems, you could synchronously mark whatever
> state you're interested as invalid, then resolve any invalidated
> state in -viewWillDraw. This would be an appropriate way to do
> deferred layout, for example.
I think it's unfortunate to have to resolve to subclassing for this
type of problem - The OP might end up having to subclass several
different NSControl subclasses to make it work. Perhaps NSView should
provide some sort of notification or delegation scheme to supplement
this method?
j o a r
DATE : Thu Mar 06 12:24:49 2008
On Mar 6, 2008, at 8:32 AM, Ken Ferry wrote:
> Or can you do your final setup in -viewWillDraw?
>
> For some kinds of problems, you could synchronously mark whatever
> state you're interested as invalid, then resolve any invalidated
> state in -viewWillDraw. This would be an appropriate way to do
> deferred layout, for example.
I think it's unfortunate to have to resolve to subclassing for this
type of problem - The OP might end up having to subclass several
different NSControl subclasses to make it work. Perhaps NSView should
provide some sort of notification or delegation scheme to supplement
this method?
j o a r






Cocoa mail archive

