You are not logged in.
Is there a (material) difference between referencing an Objective-C class using the class name directly versus the 'class' keyword with string "literal"?
Using NSURL as an example:
Applescript:
set theNSURL to current application's NSURL's fileURLWithPath:posixPath
Compared to:
Applescript:
set theNSURL to current application's class "NSURL"'s fileURLWithPath:posixPath
Thanks,
Lance
Offline
It's a good question. The only answer I can give is that the class version was used in Apple samples originally, but last I heard from one of the Apple team, the variable form was now preferred.
Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/
latenightsw.com
Online