Question
CS2->CS3 Observer questions.
Hello.
Im porting a plugin from CS2 to CS3 on MAC and have run into a problem with the observer structure.
In the CS2 plugin we simply used the default values available, IID_IUNKOWN & IID_IOBSERVER...
i IsAttached (IObserver *observer, const PMIID &interestedIn=IID_IUNKNOWN, const PMIID &asObserver=IID_IOBSERVER)=0
Called simply like this... mySubject->AttachObserver(this);
As of CS3 however this no longer possible for the "intrestedin" parameter to be left undeffined, instead the specific IID you want to monitor is required. If I understand things correctly.
i AttachObserver (IObserver *observer, const PMIID &interestedIn, const PMIID &asObserver=IID_IOBSERVER)=0
Where can I find information on what IID is connected to what action? My main interest is in guide movements and switching documents both of which my plugin have to react to.
What IID should be used to notify the plugin of movement of a guide?
What IID should be used to notify the plugin of switching of the current document?
Is there any documentation anywhere on what IIDs should be used to monitor what actions?
Grateful for any help.
Carl Johan Rydberg.
Im porting a plugin from CS2 to CS3 on MAC and have run into a problem with the observer structure.
In the CS2 plugin we simply used the default values available, IID_IUNKOWN & IID_IOBSERVER...
i IsAttached (IObserver *observer, const PMIID &interestedIn=IID_IUNKNOWN, const PMIID &asObserver=IID_IOBSERVER)=0
Called simply like this... mySubject->AttachObserver(this);
As of CS3 however this no longer possible for the "intrestedin" parameter to be left undeffined, instead the specific IID you want to monitor is required. If I understand things correctly.
i AttachObserver (IObserver *observer, const PMIID &interestedIn, const PMIID &asObserver=IID_IOBSERVER)=0
Where can I find information on what IID is connected to what action? My main interest is in guide movements and switching documents both of which my plugin have to react to.
What IID should be used to notify the plugin of movement of a guide?
What IID should be used to notify the plugin of switching of the current document?
Is there any documentation anywhere on what IIDs should be used to monitor what actions?
Grateful for any help.
Carl Johan Rydberg.