Carbon Moving Forward

| | Comments (0)
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 MacPerl.pm.

("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)

use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on October 8, 2002 10:04 AM.

Everybody Lies, That's Why They Call It Politics was the previous entry in this site.

A Little More is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.