Open
Description
Issue by jtomschroeder
Thursday Feb 02, 2017 at 17:33 GMT
Originally opened as servo/cocoa-rs#154
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