in reply to MacPerl functions...

Check these links for what concerns GUI programming: