[Q] mapping graphical items to NSViews
[Q] mapping graphical items to NSViews
- Subject: [Q] mapping graphical items to NSViews
- From: Steve Christensen <email@hidden>
- Date: Tue, 16 Mar 2004 19:25:32 -0800
This is one of those "which is the better way" kinda questions, so I'm
soliciting opinions.
I'm working on an application that manages a document containing
multiple items (pictures, movies, ...). The document view shows a
graphical representation of the items. One way of managing the items
would be to create a NSView to draw each object, ordering the views in
the same z-order as the items. Another way would be to draw all of the
items in a single view with more forward items just drawing on top of
items in back of them.
I need to be able to select one or more items and do things like move
them around, align them, etc. Would it be more efficient to just redraw
the view(s) where something changed and then let Cocoa handle drawing
the rest of the items that haven't moved, or just go with a single view
and calculate/redraw the modified areas myself?
Thoughts?
steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.