Design Element
Comment on "Core Animation Isn't Just for Animation"
by Scott Stevenson — Oct 13
@Michael: I'm using NSCell for drawing this text + NSCell field-editor-alike functionality for providing the selection mechanism. That works perfect.

There are any number of ways to get text onto the screen, so what you describe shouldn't be an issue. For example, you can just use a CATextLayer to display text, and then maybe add a text field as a subview when you want to edit something. I haven't done this exact thing in Core Animation so there might be a more proven way.

Personally, I think you should rarely have to deal with NSCells directly, other than when using tables or other multi-part views. In general, I think Cocoa apps will mostly be dealing with views and layers from here on out. That's just my perception, though.
Back to "Core Animation Isn't Just for Animation"
Design Element

Copyright © Scott Stevenson 2004-2015