This repository was archived by the owner on Jul 10, 2023. It is now read-only.
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
Multiple definitions of initWithFrame_
#154
Open
Description
I get the following error when attempting to call initWithFrame_
:
error[E0034]: multiple applicable items in scope
--> src/lib.rs:63:52
|
63 | let text = NSTextField::alloc(nil).initWithFrame_(frame);
| ^^^^^^^^^^^^^^ multiple `initWithFrame_` found
|
= note: candidate #1 is defined in an impl of the trait `cocoa::appkit::NSView` for the type `*mut objc::runtime::Object`
= note: candidate #2 is defined in an impl of the trait `cocoa::appkit::NSTextField` for the type `*mut objc::runtime::Object`
Because NSView is implemented for id
, are the other definitions of initWithFrame_
redundant? If so, can they be removed?
Metadata
Metadata
Assignees
Labels
No labels