<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28 Nov 2014, at 19:29, Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com" class="">estebanlm@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">On 28 Nov 2014, at 19:27, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com" class="">eliot.miranda@gmail.com</a>&gt; wrote:<br class=""><br class=""><br class=""><br class="">Hi Both,<br class=""><br class="">On Nov 28, 2014, at 9:19 AM, Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com" class="">estebanlm@gmail.com</a>&gt; wrote:<br class=""><br class=""><blockquote type="cite" class=""><br class="">you don’t<br class="">they do not maintain a osx-cocoa version, so your changes are useless for them.<span class="Apple-converted-space">&nbsp;</span><br class=""></blockquote><br class="">On the contrary. &nbsp;As soon as possible I want to upgrade to 10.10 and that means Cocoa. &nbsp;Right now I'm concentrating on Spur 64 bits. &nbsp;But soon time may be available. &nbsp;So Ben please send a change set if you can.<br class=""><br class="">IIRC John McIntosh wrote the Cocoa integration and it is in the squeak tree. &nbsp;It could do with more love but it exists and soon enough I'll be building it.<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">yeah, but that was like 3yr ago… sources changed quite a lot in the mean time.<span class="Apple-converted-space">&nbsp;</span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Going to cocoa will mean take back the full tree, not just the changes.<span class="Apple-converted-space">&nbsp;</span></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>ah, but is super cool that you want to move to cocoa soon :)</div><div>so, let me know how can I help you in the process.&nbsp;</div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Esteban</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""><blockquote type="cite" class=""><br class="">Esteban<span class="Apple-converted-space">&nbsp;</span><br class=""><br class=""><blockquote type="cite" class="">On 28 Nov 2014, at 18:09, Ben Coman &lt;<a href="mailto:btc@openInWorld.com" class="">btc@openInWorld.com</a>&gt; wrote:<br class=""><br class="">I celebrate my first VM contribution :) :) :) with integration of [1] into pharo-vm on github. &nbsp;Now how do I submit this for consideration for the SVN tree, to help keep things in syncd.<br class="">cheers -ben<br class=""><br class="">Ben Coman wrote:<br class=""><blockquote type="cite" class="">AliakseiSyrel reported that the OSX VM doesn't generate events on shift/ctrl/command/options/capslock keypress, but Win32 and Linux do.<br class="">(<a href="https://pharo.fogbugz.com/default.asp?14521" class="">https://pharo.fogbugz.com/default.asp?14521</a>)<br class="">I've submitted a fix to pharo-vm, but thought it might also be useful to others, and was hoping for some review and discussion here...<br class=""></blockquote><br class=""><blockquote type="cite" class="">A diff can be seen here...<br class="">[1] <a href="https://github.com/pharo-project/pharo-vm/pull/67/files" class="">https://github.com/pharo-project/pharo-vm/pull/67/files</a><br class=""></blockquote><br class=""><blockquote type="cite" class="">I discovered "recordCharEvent:fromView:" and "keyDown:" do not receive modifier keypresses, however "flagsChanged:" does - as described by the AppKit Reference "flagsChanged: informs the receiver that the user has pressed or released a modifier key (Shift, Control, and so on)."<br class="">Just above "flagsChanged:" I noticed...<br class="">-(void)keyUp:(NSEvent*)theEvent {<br class="">&nbsp;&nbsp;&nbsp;&nbsp;[(sqSqueakOSXApplication *) gDelegateApp.squeakApplication<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recordKeyUpEvent: theEvent fromView: self];<br class="">}<br class="">So I duplicated recordKeyUpEvent:fromView:<br class="">as recordKeyDownEvent:fromView:<br class="">changing only...<br class="">&nbsp;&nbsp;&nbsp;&nbsp;evt.pressCode = EventKeyUp;<br class="">to...<br class="">&nbsp;&nbsp;&nbsp;&nbsp;evt.pressCode = EventKeyDown;<br class="">and called it from the bottom of flagsChanged:<br class="">============<br class="">Now in a test image, adding a debug Transcript after primGetNextEvent:<br class="">InputEventFetcher&gt;&gt;eventLoop<br class="">&nbsp;&nbsp;&nbsp;&nbsp;...<br class="">[true] whileTrue: [<br class="">&nbsp;&nbsp;&nbsp;&nbsp;self waitForInput.<br class="">&nbsp;&nbsp;&nbsp;&nbsp;[self primGetNextEvent: eventBuffer.<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transcript crShow: Time now ; tab ; show: eventBuffer.<br class="">shows...<br class="">11:41:18.9594 pm &nbsp;&nbsp;&nbsp;#(2 182714 56 1 1 0 0 1) Shift down<br class="">11:41:18.959581 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:41:19.19321 pm &nbsp;&nbsp;&nbsp;#(2 182948 56 1 0 0 0 1) Shift up<br class="">11:41:19.193543 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:41:21.04326 pm &nbsp;&nbsp;&nbsp;#(2 184798 59 1 2 0 0 1) Control down<br class="">11:41:21.043494 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:41:21.346713 pm &nbsp;&nbsp;&nbsp;#(2 185102 59 1 0 0 0 1) Control up<br class="">11:41:21.346934 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:41:21.814845 pm &nbsp;&nbsp;&nbsp;#(2 185569 58 1 4 0 0 1) Option down<br class="">11:41:21.815136 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:41:22.137117 pm &nbsp;&nbsp;&nbsp;#(2 185892 58 1 0 0 0 1) Option up<br class="">11:41:22.137374 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:43:28.593666 pm &nbsp;&nbsp;&nbsp;#(2 312348 55 1 8 0 0 1) Cmd down<br class="">11:43:28.593854 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:43:29.014829 pm &nbsp;&nbsp;&nbsp;#(2 312770 55 1 0 0 0 1) Cmd up<br class="">11:43:29.015011 pm &nbsp;&nbsp;&nbsp;#(0 0 0 0 0 0 0 0)<br class="">11:41:43.762799 pm &nbsp;&nbsp;&nbsp;#(2 207517 57 1 0 0 0 1) CapsLock down<br class="">CapsLock does not get a up-event per...<br class=""><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=259059" class="">https://bugzilla.mozilla.org/show_bug.cgi?id=259059</a><br class="">It perhaps can be simulated like...<br class="">https://developer.apple.com/library/mac/qa/qa1519/_index.html<br class="">Thoughts?</blockquote></blockquote></blockquote></blockquote></div></blockquote></div><br class=""></body></html>