{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/245","labels_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/245/comments","events_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/245/events","html_url":"https://github.com/HaxeFoundation/hxcpp/pull/245","id":89664202,"number":245,"title":"[objc] Create Dynamic wrapper around Objective-C types","user":{"login":"waneck","id":178171,"avatar_url":"https://avatars.githubusercontent.com/u/178171?v=3","gravatar_id":"","url":"https://api.github.com/users/waneck","html_url":"https://github.com/waneck","followers_url":"https://api.github.com/users/waneck/followers","following_url":"https://api.github.com/users/waneck/following{/other_user}","gists_url":"https://api.github.com/users/waneck/gists{/gist_id}","starred_url":"https://api.github.com/users/waneck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waneck/subscriptions","organizations_url":"https://api.github.com/users/waneck/orgs","repos_url":"https://api.github.com/users/waneck/repos","events_url":"https://api.github.com/users/waneck/events{/privacy}","received_events_url":"https://api.github.com/users/waneck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T21:24:51Z","updated_at":"2015-06-19T21:50:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HaxeFoundation/hxcpp/pulls/245","html_url":"https://github.com/HaxeFoundation/hxcpp/pull/245","diff_url":"https://github.com/HaxeFoundation/hxcpp/pull/245.diff","patch_url":"https://github.com/HaxeFoundation/hxcpp/pull/245.patch"},"body":"Related to HaxeFoundation/haxe#4350 : this adds an implicit operator\r\nto convert from Dynamic to NSObject * and the other way around. The\r\nchanges are all guarded through the `-D objc` Haxe define"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/comments/113653310","html_url":"https://github.com/HaxeFoundation/hxcpp/pull/245#issuecomment-113653310","issue_url":"https://api.github.com/repos/HaxeFoundation/hxcpp/issues/245","id":113653310,"user":{"login":"waneck","id":178171,"avatar_url":"https://avatars.githubusercontent.com/u/178171?v=3","gravatar_id":"","url":"https://api.github.com/users/waneck","html_url":"https://github.com/waneck","followers_url":"https://api.github.com/users/waneck/followers","following_url":"https://api.github.com/users/waneck/following{/other_user}","gists_url":"https://api.github.com/users/waneck/gists{/gist_id}","starred_url":"https://api.github.com/users/waneck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waneck/subscriptions","organizations_url":"https://api.github.com/users/waneck/orgs","repos_url":"https://api.github.com/users/waneck/repos","events_url":"https://api.github.com/users/waneck/events{/privacy}","received_events_url":"https://api.github.com/users/waneck/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T21:50:22Z","updated_at":"2015-06-19T21:50:22Z","body":"Some implementation details:\r\n\r\n* This will wrap any `NSObject *`-derived type; Because of variance, an additional cast (from `NSObject *` to the actual casted type) was inserted on the `gencpp` side\r\n* Since apparently hxcpp does not call C++ destructors for garbage-collected types ( @hughsando , is that right? ), ARC doesn't seem to be able to won't work on hxcpp; Having this said, when boxed the types will always call `retain` on the object, and a finalizer will call `release`\r\n* I've used `vtAbstractBase + 4` for its kind type. Strangely, it seems that [this will conflict with the CFFI](https://github.com/HaxeFoundation/hxcpp/blob/master/src/hx/CFFI.cpp#L107) . However this is already the case for `cpp:Pointer` and `cpp:Struct`, so I decided not to touch on the CFFI code just yet"}}