Skip to main content
Participating Frequently
September 12, 2010
Question

Ignoring certain notifiers

  • September 12, 2010
  • 1 reply
  • 422 views

Hello,

Is there a way to ignore notifiers specifically caused by the plugin? For example, I'd like to be able to change layer visibility via my plugin, but I'd like it NOT to cause a notifier to be sent. However, I am interested in receiving a notifier when a user changes layer visibility via the layers palette.

I've tried disabling the notifier prior to changing the layer's visibility, but the notifier is still sent after my plugin returns. Right now I have a bad hack set up where layer notifications (specifically kAILayerOptionsNotifier) are ignored if it occurs within a certain time period.

Does notifyData from the Notifier contain anything particularly useful on layer set and options events?

Thanks!

--josh

This topic has been closed for replies.

1 reply

A. Patterson
Inspiring
September 13, 2010

Hmm, I would have thought disabling a notifier and then turning it back on would do the trick -- I'm surprised it follows up with another notifier. I could have sworn it didn't work that way. Are you sure its not some other layer notification? The layer properties notifier covers a lot of things (which is a little silly, I know).

And as far as I know, there's nothing useful in the notifier data. Don't hold me to this, but I think that one sends you a number that just always increases. Not much use.