ender2012 / xmlisp

Automatically exported from code.google.com/p/xmlisp
0 stars 0 forks source link

Crashed caused by unimplemented method in NSFontManager #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The code below pops up a menu in ccl on the mac but in the pc version it
gives the following error:
convertFont:toHaveTrait: failed, Courier 3"
and reports that some code in the file
/Users/palter/Clozure/cocotron/AppKit/NSfontManager is not implemented at
line 309.
Here is the code example which can be found in the test-case-examples (you
will need to check out the newest copy of XMLISP for this exampel to work:
;; Popup Test
(defmethod hello ((w application-window) (Button button))
  (show-string-popup w))

<application-window title="Currency Converter" width="300" height="180">
  <column align="stretch" valign="stretch" padding="9">
    <row align="stretch" minimize="vertical" valign="bottom">
      <button text="make-event" action="hello" width="100"
default-button="true"/>
    </row>
  </column>
</application-window>

Original issue reported on code.google.com by pokermik...@gmail.com on 22 Dec 2009 at 2:19

GoogleCodeExporter commented 8 years ago
Actually, the errors in the log aren't what causes the crash.  Those errors in 
the log are benign and occur 
when you load Cocoa into CCL.

If you fix your example to supply some items in the call to show-string-popup, 
you will run into problems 
with popup menus.

I fixed the most egregious of these with CCL r13350.  To get the updates, 
update your ccl/cocotron directory.  
(The popup doesn't appear in your example but the popup in the image editor now 
works)

I also removed the bogus "unimplemented" method log entry for 
convertFont:toHaveTrait: since it is 
implemented.

Original comment by palter@clozure.com on 31 Dec 2009 at 8:40