Code: Select all
HB_FUNC( ABOUTMSG )
{
//[ NSApp orderFrontStandardAboutPanel : nil ];
NSString * cImg = [ [ [ NSString alloc ] initWithCString: ISCHAR( 1 ) ? hb_parc( 1 ) : "" ] autorelease ];
NSString * cVersion = [ [ [ NSString alloc ] initWithCString: ISCHAR( 2 ) ? hb_parc( 2 ) : "" ] autorelease ];
NSString * cAppName = [ [ [ NSString alloc ] initWithCString: ISCHAR( 3 ) ? hb_parc( 3 ) : "" ] autorelease ];
NSString * cCopyright = [ [ [ NSString alloc ] initWithCString: ISCHAR( 4 ) ? hb_parc( 4 ) : "" ] autorelease ];
NSString * cappVer = [ [ [ NSString alloc ] initWithCString: ISCHAR( 5 ) ? hb_parc( 5 ) : "" ] autorelease ];
NSString * cCredit = [ [ [ NSString alloc ] initWithCString: ISCHAR( 6 ) ? hb_parc( 6 ) : "" ] autorelease ];
NSDictionary *options;
NSImage *img;
img = [NSImage imageNamed: cImg ];
options = [NSDictionary dictionaryWithObjectsAndKeys:
cVersion, @"Version",
cAppName, @"ApplicationName",
img, @"ApplicationIcon",
cCopyright, @"Copyright",
cAppVer, @"ApplicationVersion",
cCredit, @"Credits",
nil];
[[NSApplication sharedApplication] orderFrontStandardAboutPanelWithOptions:options];
}