• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

"About" Window for Plug In in OS X

Participant ,
Apr 13, 2015 Apr 13, 2015

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.

TOPICS
SDK

Views

419

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Apr 14, 2015 Apr 14, 2015

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];

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 14, 2015 Apr 14, 2015

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Apr 14, 2015 Apr 14, 2015

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines