Skip to content

Conversation

@mandel-macaque
Copy link
Contributor

This will later be used for the analyzer to let the user know that the initWithCoder: constructor is missing.

mandel-macaque and others added 4 commits September 11, 2025 12:04
This allows later to access this information for the analyzer and the
code generator. In a later PR we will track if the type implements the
NSCoder interface and will generate a number of default constructors
when needed.
This will later be used for the analyzer to let the user know that the
initWithCoder: constructor is missing.
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #f223b6c] Build passed (Build packages) ✅

Pipeline on Agent
Hash: f223b6c0242dcfea28d0073b8951684d760f7eae [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #f223b6c] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: f223b6c0242dcfea28d0073b8951684d760f7eae [PR build]

const string dictionaryContainerClass = "Foundation.DictionaryContainer";
const string uiViewClass = "UIKit.UIView";
const string appKitViewClass = "AppKit.NSView";
const string nsCodingClass = "Foundation.NSCoding";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the interface (INSCoding) makes sense to check for, nobody should subclass the class (NSCoding).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we do that check in bgen?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably historical reasons would be my guess

Base automatically changed from dev/mandel/binding-type-info to main September 12, 2025 11:08
@mandel-macaque
Copy link
Contributor Author

Closing this to take a more generic approach.

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.

4 participants