FROM : Tetsuya Takeo
DATE : Fri Nov 05 19:33:05 2004
Dear list,
Now I'm writing application which changes behaviour when DVD is
inserted. At first, i used CFPreferencesSetAppValue() and
CFPreferencesAppSynchronize(), it worked. The popup of Preferences
changed. But, when i insert DVD into drive, previously set application
launched. It takes logout to change behaviour which is displayed on
Preference. I searched documents, and found that there are several ways
to changes take
effect.(file:///Developer/Documentation/UserExperience/Conceptual/
PreferencePanes/index.html#//apple_ref/doc/uid/10000110i) These are
Apple Event, DO, Distributed Notification, Socket and Port and BSD
Signal.
The event sent when DVD is inserted, seems to be handled by
SystemUIServer, so i tested to send SIGHUP, and it worked. The changes
on Preference is reflected after kill command.
What i'd like to know is that, this method is considered right one or
not. If this method is thought as some exploits, it will not be
compatible with future releases. Any suggestion is appreciated.
Thanks in advance.
Tetsuya,
---
[objC retain];
Tetsuya Takeo / Galapagos Systems
DATE : Fri Nov 05 19:33:05 2004
Dear list,
Now I'm writing application which changes behaviour when DVD is
inserted. At first, i used CFPreferencesSetAppValue() and
CFPreferencesAppSynchronize(), it worked. The popup of Preferences
changed. But, when i insert DVD into drive, previously set application
launched. It takes logout to change behaviour which is displayed on
Preference. I searched documents, and found that there are several ways
to changes take
effect.(file:///Developer/Documentation/UserExperience/Conceptual/
PreferencePanes/index.html#//apple_ref/doc/uid/10000110i) These are
Apple Event, DO, Distributed Notification, Socket and Port and BSD
Signal.
The event sent when DVD is inserted, seems to be handled by
SystemUIServer, so i tested to send SIGHUP, and it worked. The changes
on Preference is reflected after kill command.
What i'd like to know is that, this method is considered right one or
not. If this method is thought as some exploits, it will not be
compatible with future releases. Any suggestion is appreciated.
Thanks in advance.
Tetsuya,
---
[objC retain];
Tetsuya Takeo / Galapagos Systems
| Related mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

