why can not get the configuration of AdiumMessageWindow toolbar
Chen Ze
surfchen at gmail.com
Fri May 7 03:54:53 UTC 2010
I wrote a plugin, which resgister a notification event for Chat_OrderDidChange.
[[adium notificationCenter] addObserver:self
selector:@selector(logToolbarConf:)
name:@"Chat_OrderDidChange"
object:nil];
And then In the selector logToolbarConf, I have the below codes to try
to get the configuration of AdiumMessageWindow toolbar.
NSToolbar *toolbar = [[[NSToolbar alloc]
initWithIdentifier:@"AdiumMessageWindow"] autorelease];
[[toolbar configurationDictionary] writeToFile:@"/tmp/conf.xml" atomically:NO];
But the result I got is not what I expected. below is the actully result:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>TB Display Mode</key>
<integer>1</integer>
<key>TB Icon Size Mode</key>
<integer>1</integer>
<key>TB Is Shown</key>
<integer>0</integer>
<key>TB Item Identifiers</key>
<array/>
<key>TB Size Mode</key>
<integer>1</integer>
</dict>
</plist>
--
aka Surf Chen
http://chenze.name/
More information about the devel
mailing list