You'll need some extra framework files to be able to do that. Try
CamelBones or
PerlObjCBridge, both these links point to overviews on
cocoadev.com, a good developer site for lots of OS X programming articles. CamelBones reports not being 10.5 compatible although they do link to a hacked version which might work.