覆盖openAboutPanel:NSDictionary键/值长度限制?

时间:2012-04-13 22:43:20

标签: objective-c macos cocoa

似乎有一个任意的(~238个字符,似乎)限制了Apple提供的此方法中使用的NSDictionary中任何值的长度,以便在OS X Cocoa应用程序中以编程方式实现“关于Panel”。有没有办法超越这个限制?感谢...

- (IBAction)openAboutPanel:(id)sender
{
    NSDictionary *options;
    NSImage *img;

    img = [NSImage imageNamed: @"Picture 1"];
    options = [NSDictionary dictionaryWithObjectsAndKeys:
                @"1.1", @"Version",
                @"Super App", @"ApplicationName",
                img, @"ApplicationIcon",
                @"Copyright 2005-2006, My Great Company", @"Copyright",
                @"Super App v1.1", @"ApplicationVersion",
                nil];

    [[NSApplication sharedApplication] orderFrontStandardAboutPanelWithOptions:options];
}

0 个答案:

没有答案