• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones) (From: Stephen Sample <email@hidden>)
 >Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones) (From: Sherm Pendley <email@hidden>)
 >Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones) (From: Stephen Sample <email@hidden>)

  • Prev by Date: Re: Backup 3 / QuickPicks / DefinitionPlist.strings
  • Next by Date: Re: can a Cocoa app scale jpeg images as nicely as Preview does?
  • Previous by thread: Re: How to release Cocoa objects from Perl? (PerlObjCBridge or CamelBones)
  • Next by thread: pixel color and alpha values from NSBitmapImageRep
  • Index(es):
    • Date
    • Thread