An Epiphany for fixing NSPopover not closing behaviour

 

First this is not a tutorial for NSPopover . Just fix for an issue.

Apple introduced NSPopover in OS X v10.7

The  NSPopover  class provides a means to display additional content related to existing content on the screen. The popover is positioned relative to the existing content.

An anchor is used to express the relation between these two units of content. A popover has an appearance that specifies its visual characteristics, as well as a behavior that determines which user interactions will cause the popover to close. …….

 

But it seems Apple never intended for the NSPopover to be used in a  NSStatusBar  menu item.  Those are the little menu icons in you menu bar that when you click show you info or perform an action. This is probably why Apple has not fixed the bugs when using a popover in this way.

THE Problem

Continue reading “An Epiphany for fixing NSPopover not closing behaviour”

Make a new note in note.app from selected text.

I just noticed a post on cult of mac  which showed how to make a new Automator  ” System Service To Save Text to Notes.app In Mountain Lion”

It is a nice idea but I was surprised that the Author used a copy to clipboard  Automator Action along with a  Run Applescript action

Screen Shot 2013-04-15 at 20.02.01

There is  some redundancy in this workflow as well as unnecessary GUI commands.

Continue reading “Make a new note in note.app from selected text.”