-
Notifications
You must be signed in to change notification settings - Fork 72
Multiple definitions of initWithFrame_
#154
Comments
What about:
|
But yeah, maybe we can remove |
In the case of NSTextField, initWithFrame is: https://developer.apple.com/reference/appkit/nscontrol/1428900-initwithframe?language=objc In the case of NSView, initWithFrame is: https://developer.apple.com/reference/appkit/nsview/1483458-initwithframe?language=objc Not sure what is the proper way to deal with that. |
Sure, I did something similar: use cocoa::appkit::NSView;
cocoa::appkit::NSTextField::alloc(nil).initWithFrame_(frame); It looks like It's interesting that the AppKit docs define it for both |
The root issue here is that
In any case, it'll be interesting to see what can be done to resolve this and #117 without waiting for specialization. |
I get the following error when attempting to call
initWithFrame_
:Because NSView is implemented for
id
, are the other definitions ofinitWithFrame_
redundant? If so, can they be removed?The text was updated successfully, but these errors were encountered: