Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

  (email not shown publicly)
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Tuesday October 08, 2002
12:04 PM

Carbon Moving Forward

[ #8246 ]

I've got a basic framework laid out now, I think. Right now my biggest problem is with file specs (a specific Mac type, FSSpec).

  • It's easy to convert a full path to a file spec, but it is more difficult to convert a relative path.
  • It makes little sense to use Mac paths, so on input, paths will need to be converted to POSIX, and on output the same.
  • The Carbon routine I found to convert a file spec to a path does output POSIX paths, so that helps. Although, I am having trouble making it not segfault. I need to pass in UInt8 for the pointer to the path, and the routine should return char *, and everything I try results in a segfault when it hits sv_setpv(). I hate C.

Anyway, that's the log for today. So far, I have Types, Resources, Gestalt, Memory all working fairly well, aside from the "must be asbolute path" caveat. Files is mostly working. MoreFiles is next, then Processes. "Last" will be AppleEvents -- the most difficult one, I still suspect -- although I likely will also do portions of

("Last" meaning for the work needed for Mac::Glue; there are others possible, like InternetConfig, Speech, and a slew of GUI modules.)

Now Playing: To Forgive - Steve Taylor (On The Fritz)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.