PDFView, while functional, is not fully implemented yet. However, I wanted to make it available ASAP so scrolling in the documentation is much easier now and it becomes printable.

Le 6 oct. 2013 à 09:25, Thomas Tempelmann <notifications@github.com> a écrit :

> In macoslib/PDFKit/PDFView.rbbas:
> 
> > +		  #if targetCocoa
> > +		    declare function objc_allocateClassPair lib CocoaLib (superclass as Ptr, name as CString, extraBytes as Integer) as Ptr
> > +		    declare sub objc_registerClassPair lib CocoaLib (cls as Ptr)
> > +		    declare function class_addMethod lib CocoaLib (cls as Ptr, name as Ptr, imp as Ptr, types as CString) as Boolean
> > +		    declare function objc_getProtocol lib CocoaLib (name as CString) as Ptr
> > +		    declare function class_addProtocol lib CocoaLib (Cls as Ptr, protocol as Ptr) as Boolean
> > +		    
> > +		    dim newClassId as Ptr = objc_allocateClassPair(Cocoa.NSClassFromString( superclassName ), className, 0)
> > +		    if newClassId = nil then
> > +		      raise new macoslibException( "Unable to create ObjC subclass " + className + " from " + superclassName ) //perhaps the class already exists.  We could check for this, and raise an exception for other errors.
> > +		      return nil
> > +		    end if
> > +		    
> > +		    objc_registerClassPair newClassId
> > +		    
> > +		    'call   class_addProtocol( newClassId, objc_getProtocol( "IKDeviceBrowserViewDelegate" ))
> Why are there commented-out calls like this? It makes me wonder if the code isn't finished yet. Either remove them if it works or add a comment explaining what's going on here.
> 
> —
> Reply to this email directly or view it on GitHub.
>