Copy link to clipboard
Copied
Hello,
I can edit the text inside the "About" Window for Plug In's in Photoshop under Windows.
I was wondering, how can I have an "About" window for plug in's in OS X?
Is there any sample code with working "About" window in OS X which I can edit its text?
Thank You.
Copy link to clipboard
Copied
Here is what Dissolve on mac does: See samplecode\filter\dissolve\mac\DissolveUIMacCocoa.cpp
//-------------------------------------------------------------------------------
//
// DoAbout
//
// Pop a simple about box for this plug in.
//
// NOTE: The global gFilterRecord is NOT a FilterRecord*. You must cast it to
// an AboutRecord*. See PIAbout.h
//
//-------------------------------------------------------------------------------
void DoAbout(void)
{
NSLog(@"DoAbout is: %d\n",AboutID);
NSAlert *alert = [[NSAlert alloc] init];
[alert addButtonWithTitle:@"OK"];
[alert addButtonWithTitle:@"http://www.adobe.com"];
[alert addButtonWithTitle:@"http://partners.adobe.com"];
[alert setMessageText:@"About Dissolve"];
[alert setInformativeText:@"An example plug-in filter module for Adobe Photoshop."];
[alert setAlertStyle:NSWarningAlertStyle];
int buttonPressed = [alert runModal];
if ( buttonPressed == NSAlertFirstButtonReturn) {
NSLog(@"DoAbout ok clicked.\n");
} else if (buttonPressed == NSAlertSecondButtonReturn) {
sPSFileList->BrowseUrl("http://www.adobe.com");
} else if (buttonPressed == NSAlertThirdButtonReturn) {
sPSFileList->BrowseUrl("http://partners.adobe.com");
}
[alert release];
}
Copy link to clipboard
Copied
Hi Tom,
I appreciate your effort.
I'm using the template of PoorMansTypeTool because I need the scripting parametrization (Best thing on Earth!!!).
How and where should I integrate it there?
Copy link to clipboard
Copied
I see a DoAbout in samplecode\filter\poormanstypetool\mac\PoorMansTypeToolUIMac.cpp
Looks like a good place to add. Change that file to compile with Objective-C compiler.