some trouble

From: Date: Tue, 30 Sep 2008 05:06:57 +0000
Subject: some trouble
Groups: php.objc 
Request: Send a blank email to php-objc+get-32@lists.php.net to get a copy of this message
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) { }

« previous php.objc (#32) next »