Menu

#152 Mac::Resources broken with Mac OS X DF .rsrc files

Development Branch
closed-fixed
7
2003-04-06
2003-02-03
Alex Eddy
No

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.

Discussion

  • Chris Nandor

    Chris Nandor - 2003-03-12

    Logged In: YES
    user_id=3660

    Well, it is not "broken", but yes, this is an open issue,
    one I have not yet had a chance to look into.

    Could you be more specific about "Calling the Resource
    Manager through CoreServices in C"? I don't think there is
    any magic way to do it. There's FSOpenResourceFile(), which
    will allow opening of a named fork, which means I'll need to
    convert the FSSpec to an FSRef and determine, either through
    a parameter or automatically (by default?), which fork to
    open. It's a nontrivial amount of work, though this is a
    need that will be addressed at some point.

    Ideas, and patches, are welcome.

     
  • Chris Nandor

    Chris Nandor - 2003-03-12
    • priority: 5 --> 7
    • assigned_to: nobody --> pudge
    • summary: Mac::Resources broken with OS X DF .rsrc files --> Mac::Resources broken with Mac OS X DF .rsrc files
     
  • Chris Nandor

    Chris Nandor - 2003-04-06

    Logged In: YES
    user_id=3660

    FSOpenResourceFile() is supported in the soon-to-be-released
    version of Mac::Carbon.

     
  • Chris Nandor

    Chris Nandor - 2003-04-06
    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.