some trouble

[email protected] (Marc Vaillant) Tue, 30 Sep 2008 01:06:57 -0400
Newsgroups php.objc
Message-ID <[email protected]>
Hi,

Just trying out some simple things and having trouble.  The only sample
that works for me is framework.php.  Below is some code I tried and the
output:

Thanks,
Marc


<?php
dl('objc.so');

objc_import_framework("Foundation");

$s = NSMutableDictionary::alloc()->initWithCapacity_(2);
$s->setObject_forKey_(3, 'hello');
var_dump($s);


?>



Output is :

getmethod for __NSPlaceholderDictionary::initWithCapacity_
Looking for __NSPlaceholderDictionary::initWithCapacity_
method type: initWithCapacity_(@12@0:4I8)
arg 0 is_ref=0
getmethod for NSCFDictionary::setObject_forKey_
Looking for NSCFDictionary::setObject_forKey_
method type: setObject_forKey_(v16@0:4@8@12)
arg 0 is_ref=0
object(NSCFDictionary)#221 (0) {
}