API Description for PyObjCTools.FndCategories

Introduction

The module PyObjCTools.FndCategories defines a number of categories on classes from the Foundation framework. These categories introduce new methods that aren’t present in that framework.

To use these new methods use the following code somewhere in your program:

import PyObjCTools.FndCategories

Additional methods on NSAffineTransform

class Foundation.NSAffineTransform
rotateByDegrees_atPoint_(angle, point)

This is similar to rotateByDegrees_ but rotates around point instead of the origin.

Parameters:
  • angle (float) – Angle the transform should be rotated by.

  • point (CGPoint) – Point the transform should be rotated around.

rotateByRadians_atPoint_(angle, point)

This is similar to rotateByRadians_ but rotates around point instead of the origin.

Parameters:
  • angle (float) – Angle the transform should be rotated by.

  • point (CGPoint) – Point the transform should be rotated around.