Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones)
Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones)
- Subject: Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones)
- From: Sherm Pendley <email@hidden>
- Date: Fri, 7 Oct 2005 11:37:39 -0400
On Oct 7, 2005, at 11:06 AM, Stephen Sample wrote:
Oh, and BTW, in case anyone else runs into this, it looks like enum
values don't get carried through from Cocoa to Perl via CamelBones.
If I try compressing an image to JPEG using
$scaledNSBitmapImageRep->representationUsingType_properties
(NSJPEGFileType,$compressionSettings);
I get a TIFF. But if I use the
my $outputJPEGData = $scaledNSBitmapImageRep-
>representationUsingType_properties(3,$compressionSettings);
(where 3 is the position of NSJPEGFileType in the enum), I get a JPEG.
Strange - that's definitely defined, and returns the correct value
(3) when printed from Perl. I'll have to dig deeper to figure it out.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden