NSObject.fromPointer constructor

NSObject.fromPointer(
  1. Pointer<Void> ptr
)

Before calling fromPointer, MAKE SURE the ptr for object exists. If ptr was already freed, you would get a crash!

Implementation

NSObject.fromPointer(Pointer<Void> ptr) : super(ptr) {
  bindLifecycleForObject(this);
}