osx - how to edit .globalpreferences.plist without logout and login? -


i want make kiosk application on mac. want disable hotkeys can done editing .globalprefernces.plist file requires re-login system not want, similar system preferences application.

thanks in advance,

amit

you don't need edit file (and should not) make kiosk application.

see -[nsapplication setpresentationoptions]. includes following options:

   nsapplicationpresentationdefault                    = 0,    nsapplicationpresentationautohidedock               = (1 <<  0),    nsapplicationpresentationhidedock                   = (1 <<  1),    nsapplicationpresentationautohidemenubar            = (1 <<  2),    nsapplicationpresentationhidemenubar                = (1 <<  3),    nsapplicationpresentationdisableapplemenu           = (1 <<  4),    nsapplicationpresentationdisableprocessswitching    = (1 <<  5),    nsapplicationpresentationdisableforcequit           = (1 <<  6),    nsapplicationpresentationdisablesessiontermination  = (1 <<  7),    nsapplicationpresentationdisablehideapplication     = (1 <<  8),    nsapplicationpresentationdisablemenubartransparency = (1 <<  9) 

see guide creating kiosks on mac os x. discusses carbon api kiosks (which may or may not available in 64 bit, didn't check), there's clear mapping onto cocoa api above.


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -