why can not get the configuration of AdiumMessageWindow toolbar
Chen Ze
surfchen at gmail.com
Sun May 9 02:08:58 UTC 2010
Here is the test project files to produce the problem.
open, build, install and open 2 adium chat tabs and then change their
orders, you will get the xml on /tmp/conf.xml.
On Fri, May 7, 2010 at 2:56 PM, Chen Ze <surfchen at gmail.com> wrote:
> 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/
>
--
aka Surf Chen
http://chenze.name/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolbartest.zip
Type: application/zip
Size: 13210 bytes
Desc: not available
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20100509/239f1901/attachment.zip>
More information about the devel
mailing list