似乎有一个任意的(~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];
}