Why is objc-object-pointer nil?
Hi,
http://deepaksurti.com
To see a miracle, be the miracle.
I define an Objective C class, make an instance, but the objective c pointer is nil. Do I need to do anything more to get an object pointer from a lisp object?
CL-USER> (objc:define-objc-class hello ()
((name :initarg :name :accessor name :initform nil))
(:objc-class-name "Hello"))
HELLO
CL-USER> (setf hello-obj (make-hello "Deepak"))
#<HELLO 200C7AFB>
CL-USER> (typep hello-obj 'objc:standard-objc-object)
T
CL-USER> (objc:objc-object-pointer hello-obj)
NIL
This page http://www.lispworks.com/documentation/lw61/OBJC/html/objc-23.htm#pgfId-890700 specifies that "an associated foreign Objective-C object of the class
MyObject
is allocated by calling the class's "alloc"
method and initialized by calling the instance's "init"
method." Isn't this objective c object created automatically?
Thanks,
Deepak
-- http://deepaksurti.com
To see a miracle, be the miracle.