• 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
"Cannot save C and Objective C pointers in script"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Cannot save C and Objective C pointers in script"?


  • Subject: "Cannot save C and Objective C pointers in script"?
  • From: Tim Nelson <email@hidden>
  • Date: Fri, 16 Sep 2016 11:18:10 -0700

I came up with what I though would be a more concise way to use and reuse ASOC methods:

on fileManager()

return (current application's NSFileManager's defaultManager())

end fileManager


on contentsOfDirectory(theDirectory)

return (fileManager()'s contentsOfDirectoryAtPath:theDirectory |error|:(missing value)) as list

end contentsOfDirectory


However shortly after creating this a message popped up saying "Cannot save C and Objective C pointers in script". I saved it anyway and tested it. It seems to be working just fine. Is this a fluke or am I committing a serious faux pas?

 _______________________________________________
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: "Cannot save C and Objective C pointers in script"?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: How do I use 'idle time'. A needed fix for memory loss.
  • Next by Date: Re: "Cannot save C and Objective C pointers in script"?
  • Previous by thread: How do I use 'idle time'. A needed fix for memory loss.
  • Next by thread: Re: "Cannot save C and Objective C pointers in script"?
  • Index(es):
    • Date
    • Thread