why can not get the configuration of AdiumMessageWindow toolbar

Chen Ze surfchen at gmail.com
Fri May 7 06:56:15 UTC 2010


Forgot to say, the version of adium I used to test is 1.3.10, and my
osx is 10.5.8

On Fri, May 7, 2010 at 11:54 AM, Chen Ze <surfchen at gmail.com> wrote:
> 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/
>



-- 
aka Surf Chen
http://chenze.name/




More information about the devel mailing list