strange difference in compilation of two Foundation classes in ASObjC
strange difference in compilation of two Foundation classes in ASObjC
- Subject: strange difference in compilation of two Foundation classes in ASObjC
- From: Mitchell L Model <email@hidden>
- Date: Sun, 19 Mar 2017 13:16:59 -0400
In a brief ASObjC script I used:the following successfullymy NSFileManager's defaultManager
However, the following: my NSURL's fileURLWithPath:arg
gets compiled into: my (nsurl's fileURLWithPath:arg)
which of course doesn't work. (The parentheses are misplaced and NSURL has been lowercased.) However, current application's class "NSURL"'s fileURLWithPath:arg does work. Why can I use "my NSFileManager" but not "my NSURL"? Is there some rule about when I can use my and when I have to use the "current application's class" construction? |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden