[MonoTouch] Bug in CGPDFDictionary.cs

Mirco Cortecchia develop at psmobile.it
Tue Oct 18 06:27:24 EDT 2011


Hello,
     I think i have found a bug in the CGPDFDictionary.cs class. There 
is a problem in the function "MapFromCGPdfObject" where the cases are 
all shifted by 1; (null=0, boolean=1,....).
But according to the mac os developer documentation the enum should be:

enumCGPDFObjectType  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/CGPDFObjectType>  {
    kCGPDFObjectTypeNull  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeNull>  = 1,
    kCGPDFObjectTypeBoolean  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeBoolean>,
    kCGPDFObjectTypeInteger  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeInteger>,
    kCGPDFObjectTypeReal  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeReal>,
    kCGPDFObjectTypeName  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeName>,
    kCGPDFObjectTypeString  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeString>,
    kCGPDFObjectTypeArray  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeArray>,
    kCGPDFObjectTypeDictionary  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeDictionary>,
    kCGPDFObjectTypeStream  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/kCGPDFObjectTypeStream>
};typedef enumCGPDFObjectType  <http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CGPDFObject/Reference/reference.html#//apple_ref/doc/c_ref/CGPDFObjectType>  CGPDFObjectType;

so the case should start from 1 (null=1, boolean=2...)


I'm using Monotouch 4.2.2.

Bye
Mirco

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111018/6f1c0b2e/attachment.html 


More information about the MonoTouch mailing list