[Openmcl-devel] Core Animation demo fails under OSX 10.6

Neil Baylis neil.baylis at gmail.com
Wed Aug 25 18:23:42 PDT 2010


On Wed, Aug 25, 2010 at 6:07 PM, Raffael Cavallaro <raffaelcavallaro at mac.com
> wrote:

>
> On Aug 25, 2010, at 6:07 PM, Neil Baylis wrote:
>
> > OK, well I'm pulling my hair over this thing now.
>
>
You can stop - I've got your ca-demo-b.lisp running now.


Excellent! My wife was getting worried. I don't have a lot to spare.


> It was simply a matter of configuring the layers *after*
> 1. displaying the window (you were already doing this bit), and
> 2.  making the view the window's content view.


I just tried this fix with the original demo, and it worked. However, the
image did not appear until I clicked the mouse in the window. That could be
because it was outside the visible area, I'll check later. I'll also verify
that it still works with10.5 using this fix.


>
> Also, you had some problems with float formats - i.e., calling:
> (#/numbefWithFloat ns:ns-number 2.0) or somesuch will error on a 64-bit
> system where *read-default-float-format* is double-float (numberWithFloat:
> wants a single-float, not a double-float), so just change it to:
> (#/numbefWithFloat ns:ns-number 2.0s0)


> modified, but working version attached.
>
> warmest regards,
>
> Ralph
>

Thanks so much Ralph. I'll post an updated version as soon as I finish
testing and incorporate some fixes.

Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20100825/35820102/attachment.htm>


More information about the Openmcl-devel mailing list