Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

List manipulation methods

Method

arrayWithIndexSet:

Summary

ASObjC can't normally extract the values from an IndexSet; this method makes it possible

Signature

+ (NSArray *)arrayWithIndexSet:(NSIndexSet *)theIndexSet

Parameters

theIndexSet = an instance of NSIndexSet

Result

An array containing the values in the index set

Availability

Version 1.0.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set theIndexSet to current application's NSIndexSet's indexSetWithIndexesInRange:{location:3, |length|:10}

set theResult to current application's SMSForder's arrayWithIndexSet:theIndexSet

ASify from theResult

--> {3, 4, 5, 6, 7, 8, 9, 10, 11, 12}

theResult as list

--> {3, 4, 5, 6, 7, 8, 9, 10, 11, 12}



Click here to open script in a script editor