Page 1 of 1

selecting the "right" blend mode…

Posted: August 17th, 2017, 6:43 am
by Jean-Jacques Boutaud
Selecting the "right" blend mode (right from an user point of view) is always time-consuming and challenging. you have to select one blend mode from a pop-up menu then most of the time select the next one until you find the "right" one.
A few applications use a different approach, they provide a pop-up menu populated with the full list of blend modes ( like Art Text) but navigating in this list preview the selected blend mode in real time ( trust me this makes a huge difference!).
If you need to see this feature, have a glance to : Acorn or Affinity Photo.
Adding this to Art Text should be so nice.
It seems I make a mistake: this post is not related to Art Text Window version.
Feel free to move t to the right forum.
Sorry.

Re: selecting the "right" blend mode…

Posted: June 26th, 2018, 12:03 pm
by Jean-Jacques Boutaud
It takes me some time, but I will going to answer myself to this topic.
A little bit technical but not so difficult.
Working on a "personal project"
Image
( an Mac App that process images with a little help from Core Image Filters, I implemented this great feature (imho) and it's really easy :
first of all, a Class of my project had to adopt the NSMenuDelegate Protocol
In my case this was the main Controller Class :

Code: Select all

@interface Controller : NSObjectController <NSMenuDelegate>
then in the implementation I use this method
- (void)menu:(NSMenu *)menu willHighlightItem:(NSMenuItem *)item
if this menu is the one that displays Blend Modes CIFilters, you can use item.title to get the highlighted MenuItem.
Hope that helps somebody !