Skip to content

Commit

Permalink
rectByOffsetting(dx:dy:) has been renamed to offsetBy
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelhanneken committed Oct 1, 2015
1 parent 7a53e83 commit 79c0449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Icns Composer/DragDropImageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class DragDropImageView: NSImageView, NSDraggingSource {
let draggingFrameOrigin = convertPoint(mouseDown, fromView: nil)
// Build the dragging frame and offset it by half the image size on each axis
// to center the mouse cursor within the dragging frame.
let draggingFrame = NSRect(origin: draggingFrameOrigin, size: img.size).rectByOffsetting(dx: -img.size.width / 2, dy: -img.size.height / 2)
let draggingFrame = NSRect(origin: draggingFrameOrigin, size: img.size).offsetBy(dx: -img.size.width / 2, dy: -img.size.height / 2)

// Assign the dragging frame to the draggingFrame property of our dragging item.
draggingItem.draggingFrame = draggingFrame
Expand Down

0 comments on commit 79c0449

Please sign in to comment.