The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex
ARC is function of the compiler rather than the device, so technically it has nothing to do with the OS it is being used on. The difference between the two is the actual zeroing of weak references. Read this for even more info about it.
ReplyDeleteRunning an application that was compiled with ARC on a device with an OS prior to 5.0 will essentially manually zero out references rather than actually zero them out. The automatic zeroing is a core feature of ARC and is why you no longer need to call dealloc or release objects.
Don't know where you saw the bit about 4.3 (do you have a link?) - but in the "Transitioning to ARC Release Notes" Apple says iOS 4.
ReplyDeleteARC is a compiler level feature. So it should work if you are able to compile your code with the latest LLVM 3 compiler. Some very old code bases (mostly old C language third party libraries) that require GCC compiler will not work (such code bases are very very rare)
ReplyDeleteZero-ing weak references, a run time feature that ARC takes advantage of, is not available on OSes before iOS 5/Lion. But ARC without weak references will still work.