• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
strange difference in compilation of two Foundation classes in ASObjC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 successfully
my 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

  • Follow-Ups:
    • Re: strange difference in compilation of two Foundation classes in ASObjC
      • From: Shane Stanley <email@hidden>
    • Re: strange difference in compilation of two Foundation classes in ASObjC
      • From: Mitchell L Model <email@hidden>
  • Prev by Date: Re: ASObjc: FileManager changeCurrentDirectoryPath not recognized
  • Next by Date: Re: strange difference in compilation of two Foundation classes in ASObjC
  • Previous by thread: Re: ASObjc: FileManager changeCurrentDirectoryPath not recognized
  • Next by thread: Re: strange difference in compilation of two Foundation classes in ASObjC
  • Index(es):
    • Date
    • Thread