Skip to content

Conversation

dkimitsa
Copy link
Contributor

fix for #629

Root case(s):

  1. some apis return id and accept back id.
    In case of RoboVM 2.3.16 bind these types as following:
  • id -> NSObjectProtocol
  • id -> NSObject
  1. there is significant moment: CocoaTouch defines all NSObject apis in NSObject protocol and keeps NSObject class empty. While RoboVM has opposite implementation: NSObjectProtocol is empty

  2. RoboVM handle retain/release for NSObject subclasses and there is might be issues with NSObjectProtocol

Root case(s):
1. some apis return id<nsobject> and accept back id.
In case of RoboVM 2.3.16 bind these types as following:
* id<nsobject> -> NSObjectProtocol
* id -> NSObject

2. there is significant moment: CocoaTouch defines all NSObject apis in NSObject protocol and keeps NSObject class empty. While RoboVM has opposite implementation: NSObjectProtocol is empty

3. RoboVM handle retain/release for NSObject subclasses and there is might be issues with NSObjectProtocol
@Tom-Ski Tom-Ski merged commit 16c768c into MobiVM:master Mar 12, 2022
@dkimitsa dkimitsa deleted the fix/nsobject-protocol-revert branch April 16, 2022 09:31
dkimitsa added a commit to dkimitsa/robovm that referenced this pull request Aug 27, 2022
PR MobiVM#632 already reverted NSObjectProtocol back to NSObject using regenerated bindings by bro-gen.
But there was amount of manual changes, and this the fix is to revert corresponding commit:
MobiVM@002b53b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants