Cannot create relations in FSMs in Mac OS X

Cannot create relations in FSMs in Mac OS X

Post by js » Sat, 15 Sep 2007 12:04:20


Creating relations in FSMs in Ptolemy II involves CTRL-clicking and
dragging. In OS X, CTRL-click is a replacement for right-clicking. Thus
we just cannot create relations in FSM in OS X, which is a major
problem. Is there a known solution?

Thanks,

--
J. S. Senal
http://www.yqcomputer.com/



----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
 
 
 

Cannot create relations in FSMs in Mac OS X

Post by js » Sat, 15 Sep 2007 23:57:40

I have started digging in the code a bit. In FSMGraphController.java
look for _linkCreator and _shortcutFilter.
What is strange is that if I print the list of interactors in
CompositeInteractor, it doesn't show the _linkCreator (even though it is
added to the _stateController in FSMGraphController.initializeInteraction().

So maybe the problem isn't a CTRL/COMMAND issue.
I'm not very familiar with that code, so if someone could help me out,
it would be nice. Thanks.




--
J. S. Senal
http://www.yqcomputer.com/



----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM

 
 
 

Cannot create relations in FSMs in Mac OS X

Post by cxh » Sun, 16 Sep 2007 01:19:03

Hi J. S.,
This problem has come up before.
See
http://www.yqcomputer.com/
and
http://www.yqcomputer.com/ +right+click+macos&rnum=4&hl=en#523be2eb2ba355d9

I don't have a mac, so I can't easily test this.

The place to look is diva/canvas/event/MouseFilter.java

2006-12-30 14:15 cxh

* diva/canvas/event/MouseFilter.java, lib/diva.jar
(rel-6-0-beta.[1,1]): Mac fixes (Dan Higgins)

2006-11-19 21:36 cxh

* diva/canvas/event/MouseFilter.java (1.23): Added
InputEvent.META_MASK to _modifierMask. The Macintosh requires
META_MASK for selecting relations and right clicking. However, a
comment further down says: // Do not or these masks in, they
will conflict with right mousing // on transitions in modal
models //| InputEvent.ALT_MASK //|
InputEvent.ALT_GRAPH_MASK //| InputEvent.META_MASK; However,
even with the change, right clicking on transitions in Modal Models
seems to work.

See also
2004-05-27 14:18 neuendor

* ptolemy/vergil/actor/ActorEditorGraphController.java (1.41):
Maybe mac will work now?

2004-05-27 14:08 neuendor

* ptolemy/vergil/basic/PopupMouseFilter.java (1.3): modified to
deal properly on windows and mac.

2004-05-27 14:07 neuendor

* diva/canvas/event/: ExtendedMouseFilter.java (1.1),
LayerEvent.java (1.12), makefile (1.4): added ExtendedMouseFilter
for dealing with extended modifiers correctly.


I'm sorry that this problem keeps coming up. I almost switched to a
mac, but macs don't have the mouse embedded in the middle of the
keyboard that I've become fond of.

If you fix this, I can fold it into the CVS branch.

_Christopher

--------

Creating relations in FSMs in Ptolemy II involves CTRL-clicking and
dragging. In OS X, CTRL-click is a replacement for right-clicking. Thus
we just cannot create relations in FSM in OS X, which is a major
problem. Is there a known solution?

Thanks,

--
J. S. Senal
http://www.yqcomputer.com/



---------------------------------------------------------------------------
-
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
 
 
 

Cannot create relations in FSMs in Mac OS X

Post by higgin » Sun, 16 Sep 2007 02:15:27

i,

Just using the AppleKey(CloverLeaf) + drag works just fine for me on my
MacBookPro for creating relations. This should work for most things on
the Mac that would use the <Ctrl> key on a PC.

Dan Higgins
NCEAS

----

Christopher Brooks wrote:


--
*******************************************************************
Dan Higgins XXXX@XXXXX.COM
http://www.nceas.ucsb.edu/ Ph: 805-893-5127
National Center for Ecological Analysis and Synthesis (NCEAS) Marine Science Building - Room 3405
Santa Barbara, CA 93195
*******************************************************************


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM