develooper Front page | perl.macperl.porters | Postings from February 2003

[ macperl-Bugs-679861 ] Mac::Resources broken with OS X DF .rsrc files

From:
SourceForge.net
Date:
February 3, 2003 15:02
Subject:
[ macperl-Bugs-679861 ] Mac::Resources broken with OS X DF .rsrc files
Message ID:
E18fpBZ-0001QH-00@sc8-sf-web2.sourceforge.net
Bugs item #679861, was opened at 2003-02-03 14:35
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=107940&aid=679861&group_id=7940

Category: Mac Toolbox (Mac:: modules)
Group: Development Branch
Status: Open
Resolution: None
Priority: 5
Submitted By: Alex Eddy (arekkusu)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mac::Resources broken with OS X DF .rsrc files

Initial Comment:
Resource Manger calls don't work with OS X's
datafork-style resources, using MacCarbon 0.03:

use Mac::Memory;
use Mac::Resources;

my $rsrcfile = "Datafork.rsrc";
my $fileref = FSpOpenResFile($rsrcfile, 0) || die
"Can't open $rsrcfile: $!";


results in: "Unknown error: 4294967257"

Traditional resourcefork-style resources work as
expected, but they are deprecated under OS X
(cross-platform issues etc.)

Calling the Resource Manager through CoreServices in C
handles the DF/RF styles transparently. Mac::Resources
ought to do the same.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=107940&aid=679861&group_id=7940



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About