Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Miscellaneous methods

Method

lineDashCountAndPhaseOfBezier:

Summary

This provides access to the result of the -getLineDash:count:phase: method of NSBezierPath.

Signature

+ (NSArray *)lineDashCountAndPhaseOfBezier:(NSBezierPath *)theBezier

Parameters

theBezier = an NSBezierPath

Result

Array/list of the three values

Availability

Version 1.2.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set theNSBezierPath to current application's NSBezierPath's bezierPath()

set theResult to current application's SMSForder's lineDashCountAndPhaseOfBezier:theNSBezierPath

ASify from theResult

--> {0.0, 0, 0.0}

theResult as list -- 10.11 only

--> {0.0, 0, 0.0}

theResult as list -- 10.9 and 10.10

--> <as above, but real values lose precision>


Click here to open script in a script editor