[kepler-dev] OS X with ptolemy 4

Dan Higgins higgins at nceas.ucsb.edu
Thu May 27 10:14:36 PDT 2004


Steve,

    I have been digging into this and have a simple fix that seems to work!
    In diva.canvas.event,MouseFilter, note the current code fragment

    /** The modifier mask
     */
    private int _modifierMask =
    InputEvent.SHIFT_MASK
    | InputEvent.CTRL_MASK

    // AWT is lame
    //| InputEvent.ALT_MASK
    //| InputEvent.META_MASK;

[I don't know why the '//AWT is lame' comment is there (other than that 
those masks are the same as some of the button masks).]

if you add one more mask, i.e.

    /** The modifier mask
     */
    private int _modifierMask =
    InputEvent.SHIFT_MASK
    | InputEvent.CTRL_MASK
    | InputEvent.META_MASK;   // added by Dan Higgins

    // AWT is lame
    //| InputEvent.ALT_MASK
    //| InputEvent.META_MASK;

then dragging from a relation (and command creation of a relation) seem 
to work on the Mac!

Dan Higgins (NCEAS)

-----

Stephen Andrew Neuendorffer wrote:

> Unfortunately, getting command-click to work is necessary, since it is 
> the only way to connect a port to a relation...
> This *should* work, but without access to a mac to get some event 
> traces, I'm out of ideas...
>
> At 03:49 PM 5/25/2004, Chad Berkley wrote:
>
>> Hey,
>>
>> I've been playing with the current ptolemy CVS head on my powerbook 
>> G4 running OS X 10.3.3 and I'm happy to report that I haven't found 
>> anything that doesn't work now.  Even the delete key successfully 
>> deletes visual components (it doesn't in 3.0.2).  The only thing that 
>> I noticed, is, as Christopher pointed out, that you can't ctrl click 
>> to create a new relation (although you can simply click the icon in 
>> the toolbar).  I'd be happy to do further Mac OS testing on my 
>> powerbook if anyone needs me to.
>>
>> chad
>>
>> _______________________________________________
>> kepler-dev mailing list
>> kepler-dev at ecoinformatics.org
>> http://www.ecoinformatics.org/mailman/listinfo/kepler-dev
>
>
>
> _______________________________________________
> kepler-dev mailing list
> kepler-dev at ecoinformatics.org
> http://www.ecoinformatics.org/mailman/listinfo/kepler-dev



-- 
*******************************************************************
Dan Higgins                                  higgins at nceas.ucsb.edu
http://www.nceas.ucsb.edu/    Ph: 805-892-2531
National Center for Ecological Analysis and Synthesis (NCEAS) 
735 State Street - Room 205
Santa Barbara, CA 93195
*******************************************************************





More information about the Kepler-dev mailing list