简体   繁体   中英

How to build an “editor” in Cocoa

I am looking for some very general advice on how to implement editing in Cocoa. Not for text, but shapes, pictures, etc. Basically I want to implement objects on a drawing board that the user can eg drag around, assign new content, resize, ... Similar to almost any graphical editor like Keynote, Pages, Drawing programs.

I think there is no solution built into Cocoa, and I am not aware of any other implementation (besides CGDrawKit, but that's somehow only for drawing). What would be your advice on how to implement this?

Take a look at the Sketch sample code, which is installed in /Developer/Examples/.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM