2

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

- (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];
}
4

0 回答 0