Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoa User-Resizable Views

how can i achieve user-resizable views like in interface builder, so that the user can adjust some images by their own

Interface Builder Resizing

Do i have to manage all this manually with a view that watches mouse movement and so on?

like image 561
thomasguenzel Avatar asked Nov 04 '22 08:11

thomasguenzel


1 Answers

You have to do all the work yourself. You will need to keep track of the objects in your view, their positions and do all the mouse tracking and view updating.

However, this is not actually very difficult, and Apple has provided a very complete example in its Sketch sample code.

like image 56
Rob Keniger Avatar answered Nov 13 '22 06:11

Rob Keniger