Skip to main content
Advice
0 votes
6 replies
61 views

I know you can set the Info.plist to match files by extension, MIME type, or UTI. Is there a way to add custom matching, like adding a filter function that looks at the entire name?
CTMacUser's user avatar
  • 2,082
13 votes
4 answers
1k views

I tried to write the following code and it was rejected by the compiler: #include <type_traits> struct Base { virtual void f() {} }; template <typename T> struct Derived : Base { ...
Olly's user avatar
  • 321
Advice
3 votes
7 replies
219 views

As this problem never gets stated as an article anywhere else, I wanted to state it here. C# when calling a method of a derived object, it will not see the derived methods instantly. It will firstly ...
user31962013's user avatar
0 votes
2 answers
55 views

CMake options get their default value, or they are set explicitly (mostly via the command-line). Now, in my CMakeLists.txt, I can get the current value of an option; but - I want to know if the option ...
einpoklum's user avatar
  • 138k
1 vote
0 answers
41 views

I want to implement a custom Tedit box and override the OnChange handler (rather than set the OnChange property). I want to do it that way so I can preserve the inherited OnChange code I found this ...
Clay Christian's user avatar
Best practices
1 vote
4 replies
129 views

If my record implements an interface, with a field accessor implicitly implementing a method, it should be an instance of what the @Override annotation is meant to cover. interface I { int f(); } ...
ice1000's user avatar
  • 6,619
Advice
0 votes
9 replies
140 views

Explain please why the output is "Base" ? Isn't getClassName method inherited? class Base {     public String className = "Base";     public String getClassName() {         ...
J.J. Beam's user avatar
  • 3,193
0 votes
0 answers
53 views

Problem Statement I'm subclassing Gtk4 container widgets so I can add functionality to various property changes. For this question I'll use set_orientation from Gtk.Box and the Gtk.Orientable ...
Ardemus's user avatar
  • 61
0 votes
2 answers
201 views

I'm trying to override the View property in a derived class from Listview: public class CustListview : System.Windows.Forms.ListView { private CustView mView = new CustView(); public enum ...
DennisV's user avatar
  • 11
1 vote
2 answers
177 views

I recently ran into something weird while working with inheritance in Python. I had a base class method that was synchronous, but in the subclass, I accidentally overrode it as an async method (...
Rishabh Chauhan's user avatar
-1 votes
1 answer
112 views

I'm a bit confused about how method overriding works in Python. Let's say I have a base class with a method, and I override that method in a subclass. When I call the method from the subclass, the ...
Rishabh Chauhan's user avatar
1 vote
0 answers
49 views

The example.xsd file contains this fragment: <xs:override schemaLocation="../base/definitions.xsd"> <xs:simpleType name="MessageTypeEnum"> <xs:annotation&...
jcjustesen's user avatar
3 votes
0 answers
102 views

Assume there is a base class in a Java library which cannot be modified public class BaseClass { public Something function(int... args){ ... } } Typically, this would be overridden in Scala by ...
Ian Bertolacci's user avatar
0 votes
3 answers
117 views

I am trying to overload a method from a base class in an inherited class, which is used indirectly through another method in the base class. I have tried a bunch of combinations of using, override and ...
Renze's user avatar
  • 42
1 vote
0 answers
53 views

We've been plagued for years by the GetFileOpenName and GetFileSaveName functions that open Windows dialog boxes. When the user closes them, the application's current directory has changed. Afterward, ...
Kurt Triebe's user avatar

15 30 50 per page
1
2 3 4 5
546