Friday, 23 January 2015

WebScriptObject "life of a" script problem


so i've run little problem , i'm not sure if i'm doing wrong or if it's designed this, , i'm not using how meant used.

when evaluate script or add global functions/function callbacks (and set kjspropertyattributedontdelete , kjspropertyattributereadonly), , wish make use of repeatedly later using callwebscriptmethod:witharguments: seems last number of calls before (i assume) freed. if call global function callback stay around quite bit longer still freed.

number of webscriptobject's private method still report if working properly, it's when tries execute it, returns undefined , actions in script not performed (reason think it's getting freed).

there way/something i'm missing in order scripts , functions last life of webscriptobject?


edit: realized because i'm not setting evaluated scripts kjspropertyattributedontdelete, since global functions , callbacks used , did set still function. don't know how i'm meant go setting properties of evaluated scripts.


edit: i've got 1 way can go doesn't seem correct solution. properties webscriptobject object. problem has properties (don't want modify of them), want properties script evaluated.
 



Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment