Inherits from NSView
Declared in M2ObjectView.h
M2ObjectView.m

Overview

Responsible for drawing one object

Tasks

Hierarchy

Model

Dragging & Resizing

  •   resizeHandle

    Reference to resize handle object

    property
  •   isDragging

    Boolean indicating whether object is currently being dragged

    property
  •   isResizing

    Boolean indicating whether object is currently being resized

    property
  •   mouseDownLocation

    Point of last location in the window, where mouse down event was received. Used for computing new position/size when dragging or resizing.

    property
  •   mouseDownFrame

    Frame of view when last mouse down event was received. Used for computing new frame when dragging or resizing.

    property

Selection

Rotation

Flipping

Properties

canvasView

Reference back to parent canvas view

@property (assign) M2CanvasView *canvasView

Discussion

Reference back to parent canvas view

Declared In

M2ObjectView.h

isDragging

Boolean indicating whether object is currently being dragged

@property (assign) BOOL isDragging

Discussion

Boolean indicating whether object is currently being dragged

Declared In

M2ObjectView.h

isFlippedHorizontally

Boolean value indicating whether receiver is currently flipped horizontally.

@property (assign) BOOL isFlippedHorizontally

Discussion

Boolean value indicating whether receiver is currently flipped horizontally.

Declared In

M2ObjectView.h

isFlippedVertically

Boolean value indicating whether receiver is currently flipped vertically.

@property (assign) BOOL isFlippedVertically

Discussion

Boolean value indicating whether receiver is currently flipped vertically.

Declared In

M2ObjectView.h

isResizing

Boolean indicating whether object is currently being resized

@property (assign) BOOL isResizing

Discussion

Boolean indicating whether object is currently being resized

Declared In

M2ObjectView.h

isSelected

Boolean value indicating whether receiver is currentl selected.

@property (assign) BOOL isSelected

Discussion

Boolean value indicating whether receiver is currentl selected.

Declared In

M2ObjectView.h

mouseDownFrame

Frame of view when last mouse down event was received. Used for computing new frame when dragging or resizing.

@property (assign) NSRect mouseDownFrame

Discussion

Frame of view when last mouse down event was received. Used for computing new frame when dragging or resizing.

Declared In

M2ObjectView.h

mouseDownLocation

Point of last location in the window, where mouse down event was received. Used for computing new position/size when dragging or resizing.

@property (assign) NSPoint mouseDownLocation

Discussion

Point of last location in the window, where mouse down event was received. Used for computing new position/size when dragging or resizing.

Declared In

M2ObjectView.h

object

Represented model

@property (retain) M2Object *object

Discussion

Represented model

Declared In

M2ObjectView.h

resizeHandle

Reference to resize handle object

@property (retain) NSView *resizeHandle

Discussion

Reference to resize handle object

Declared In

M2ObjectView.h

rotation

Rotation of receiver in degrees.

@property (assign) CGFloat rotation

Discussion

Rotation of receiver in degrees.

Declared In

M2ObjectView.h

Instance Methods

deselect

Deselects receiver.

- (void)deselect

Discussion

Deselects receiver.

Declared In

M2ObjectView.h

makeSelected

Selects receiver.

- (void)makeSelected

Discussion

Selects receiver.

Declared In

M2ObjectView.h