Re: NOOB: Could someone explain in laymen's terms the reason for an Interface?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chris (dunawayc_at_gmail.com)
Date: 01/07/05


Date: 7 Jan 2005 13:52:52 -0800

Have you ever used Adobe Photoshop? or any graphics app that has
"plugins"?

Plugins for these apps are typically written by third parties but in
order to work correctly in Photoshop, they must be written in a certain
way.

Photoshop, then, would define the interface, that is a specification
for a list of functions and properties that the plugin author must use,
or implement.

As long as the plugin writer follows the interface, then Photoshop will
be able use the plugin. Adobe has no idea about how the plugin works,
it just knows that it can call certain methods and get certain data
back in return. In other words, Photoshop doesn't have to know about
the internal workings of the plugin.

By the same token, the plugin doesn't have to know about the internal
workings of Photoshop either. All it knows is that Photoshop will call
a certain method and pass in certain data. The plugin then takes that
data, manipulates it however it wants, and returns data back to
Photoshop. What it returns is defined by the interface.

The whole point is that, Adobe publishes the interface, and third party
developers can develop to that interface with little or no help from
Adobe.

Chris



Relevant Pages

  • Re: Why Implementation?
    ... I presume you are referring to Interface Implementation. ... Adobe Photoshop. ... When PS loads the plugin, it has no idea of how the plugin is ... For example the SQLConnection object implements the ...
    (microsoft.public.dotnet.general)
  • Re: Camera Raw 5.2 and Photoshop CS4, not CS3
    ... and as i said, camera raw adds more than just new cameras, not to ... with older versions of photoshop. ... the plugin does absolutely nothing. ... that feature in cs3 or use two code paths, ...
    (rec.photo.digital.slr-systems)
  • Re: Why Implementation?
    ... > I presume you are referring to Interface Implementation. ... > necessarily written by Adobe. ... > When PS loads the plugin, it has no idea of how the plugin is ... For example the SQLConnection object implements the ...
    (microsoft.public.dotnet.general)
  • Re: Bridge not showing RAW thumbs in CS2
    ... >>That's because you have put it in the wrong folder. ... Photoshop only plugin, so it should not be installed in the Photoshop ... tells you where to install it.<< ...
    (comp.graphics.apps.photoshop)
  • Re: Nikon sacn plugin with CS 3
    ... Plugin 4 into the Import/Export folder of photoshop but when I open ... export folder but when I launch Photoshop CS 3 it says it didn't load. ...
    (comp.periphs.scanners)