Refresh desktop icon of mac os x - objective-c

I want to refresh desktop icon of my application without relaunch finder or dock. my motive is refresh desktop icon without realize refresh to user

You can try
tell application "Finder"
tell desktop
update every item with necessity
end tell
end tell
Refresh apple script does not work on 10.8 and above. Only way to refresh desktop is to restart finder.

Related

Is there any way to open Cocoa app as an sheet on Browser?

Is there any way to open Cocoa app as an sheet on Browser (Safari for example) ?
More details - you go to some url, and modal window appeared on browser it should be Cocoa app (like window with some UI and buttons).
I have extension, plugin already ready to handle open url,etc.. I wonder is there any way to do that, in Windows OS it was possible through getting Browser Window Handle from plugin but OSX won't let do that. Any ideas appreciated.
Thanks!
It cannot be done on iOS or OS X as a modal. The only thing you can do is
Register a custom URL scheme, and Safari will switch to your app
When the user taps on a link. Alternatively, you could build a JavaScript bookmarklet, but I'm assuming you don't want to do that.

Air for iOS config panel closes when I click another tab on Flash CS6 on Windows

Whenever I try to edit configuration in Air (desktop, android or iOS) and I click in another tab, Flash loses focus and the config windows closes. I have googled for anything similiar but I haven't found anything.
Does anybody knows if this is a known issue, or if there is another way to add icons, certificates and permissions in Flash CS6.
Thanks everybody!

How to programmatically lock an iPad app into one single application?

we are doing a product display iPad app and don't want customers to be able to quit the app pressing the home button. We're planning to use only UIGesture to let the admin users to quit. How to programmatically lock an iPad app into one single application without install any third party app or profile?
There is a feature for this added in iOS 6 Beta 2 called Guided Access, see http://www.idownloadblog.com/2012/06/26/ios-6-guided-access/
Install the iPhone Configuration Utility: http://support.apple.com/kb/DL1465?viewlocale=en_US&locale=en_US
Make a .mobileconfig with the SBStoreDemoAppLock property set to true
Install the mobile config on the device.
Installation of the mobile config can be done using either the iPCU app or by opening the file with Safari on the device.
Now the device is in kiosk mode and the home button is disabled.
Remove the .mobileconfig file (again using the iPCU app) and reboot the device to re-enable the home button.
I believe that the common solution to this problem is a case that covers the home and power buttons. In practice, you'll want something that is fairly robust to prevent theft of the iPad, and that neatly covers access to the dock connector whilst providing power.
A quick google search of iPad kiosk case turns up plenty of options. Use of iPads as PoS displays in stores and at trade shows is incredibly popular.

Make Cocoa Application Unquittable

I am writing a Cocoa application that needs to NOT have the option to quit in the dock. I was able to take the menu option out application from the menu-bar. I want to take the quit option out of the dock right-click option. How would I go about this? Thanks in advance!
You could make the app a background-only app by adding the LSUIElement key to your Info.plist file and setting its value to YES.
This will prevent your app from appearing in the dock and will also prevent it having a menu bar. You can present a UI to open app configuration windows etc via an NSStatusItem in the menu bar.
However, if this is going to be the sole app running on the system then you should make it a full-screen kiosk app, which will allow you to completely control what users can do with the system, including preventing the quitting of the app. You can read more about kiosk mode here.

Launch an app that doesn't have main window in Mac OS X

As explained at this site, I could launch an app from Safari.
I need to open an app that does some work behind the curtain, so I want an app that doesn't have a main window.
Q : How can I make an app that doesn't have a main window or that doesn't show any window?
Easiest way is to remove the window from the nib/xib file. If you want to additionally not have a dock icon, set the Application is agent (UIElement) key in the info.plist to true