#655: NSInteger received as nil from QuickLook API
-----------------------------------+----------------------------------------
Reporter: jakub.su...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
I'm trying to display a QuickLook preview panel inside my MacRuby
application. I've implemented a method previewPanel:previewItemAtIndex:
from QLPreviewPanelDataSource protocol, and it seems it's being called
with nil in the second parameter, while it should be an NSInteger with the
index of the file on the list. The same class implemented in ObjC receives
this parameter as a proper NSInteger.
Is it a MacRuby bug, or is it just because some bridge support files are
missing in Apple's frameworks? Can I do anything about it, other than
implementing the class in ObjC?
Also, when I upgraded to the latest nightly version, I started getting
such messages in the console when I start the app (this doesn't happen in
0.5):
{{{
2010-04-18 13:35:19.848 QuickLookTest[54689:a0f] [QL] image
sp_zoomp_handle not found
2010-04-18 13:35:19.851 QuickLookTest[54689:a0f] [QL] image
sp_zoomp_track_left not found
2010-04-18 13:35:19.851 QuickLookTest[54689:a0f] [QL] image
sp_zoomp_track_center not found
2010-04-18 13:35:19.852 QuickLookTest[54689:a0f] [QL] image
sp_zoomp_track_right not found
}}}
They don't seem to have any effect on the QuickLook panel display
though...
Attaching a sample project that shows the problem with the data source
method.
--
Ticket URL: <http://www.macruby.org/trac/ticket/655>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel