interface

How make scrolling function with Interface builder on the iPhone?

I wonder how is possible to make a view scroll, like in a table view. I have a form that have several fields on it. I don't wanna buil it as a traditional table that drill-down. Is not very large but because the main windows is a tab-bar I lack of a bit of vertical space. Also, when I try to fill a textfield get covered by the keywoard...

How do I properly set up a Silverlight-Enabled WCF Service?

EDIT: I started a closed vote on this question because I resolved the issue. I was doing everything fine, but a reference to an ASP URL rewriter that I downloaded and uninstalled a while ago still had a reference in IIS. This forum post by Waclaw Stypula (the one with the steps) helped me track this down, by accident. When I launched t...

Is it possible to make the WcfTestClient work for custom transport channels?

Goal I would like to be able to both host and connect to a vanilla sockets server via WCF, within the hosting framework I am devising. I want to be able to use WCF to codify the transport and protocol communications that have to be manually managed by sockets programmers today. This would allow me the ultimate interoperability with Li...

Byte Stream Unit Test

I'm utilizing the Reporting Services web service to generate a report and allow the user to download it. This is occuring via PDF, Excel, XML, etc. and working just fine. I'm trying to create some seperation between my reporting class and the implementation, but am struggling with how I can can do this in a manor that is still testable...

Is it possible to return interfaces from .net webservices or can one only return concrete classes?

I need to return a complex type from a webservice and had constructed the class MyComplexType which implements the interface IMyComplexType. Now in my webservice I have a method that should return an object that implements IMyComplexType like so: [WebMethod] public IMyComplexType GetMyComplexType() { IMyComplexType myCt = new MyCompl...

Discovering Interface Dependencies

I have taken over maintenance of a very large (>2M SLOC) software project, all written in C#. There is very little documentation. I am now wanting to make a change to a module that has public interfaces (about 400), but I don't know what all other modules (there are about 50 total) in the solution may be using this public interface. H...

How do you find all subclasses of a given class in Java?

How does one go about and try to find all subclasses of a given class (or all implementors of a given interface) in Java? As of now, I have a method to do this, but I find it quite inefficient (to say the least). The method is: Get a list of all class names that exist on the class path Load each class and test to see if it is a subcla...

Java: No interface implementation?

Today I got my book "Head First Design Patterns" in the mail. Pretty interesting stuff so far, however I do have a question about it's contents. I have no Java/C# background nor do I wish to jump into those languages right now (I'm trying to focus on C++ first). In the book is said that java does not have an implementation for interface...

C# double standard?

I am doing the exact same thing in two classes, and in one the compiler is allowing it just fine, but the other one is giving me an error. Why the double standard? There's 15 classes using this same pattern, but only one refuses to compile, saying the following error: 'AWWAInvoicingXML.AwwaTransmissionInfo' does not implement inter...

Linq - Casting IQueryable to IList returns null - WHY?

I have to be missing something obvious here. I don't get why this cast of the results of a linq query returns null and not the typed list I'm requesting. IList<IMyDataInterface> list = query.ToList() as IList<IMyDataInterface>; The complete code to run this is below. This is a knowledge gap I need to bridge. I have tried all kinds of ...

Generics using public interfaces and internal type parameters

I have the following situation: // A public interface of some kind public interface IMyInterface { int Something { get; set; } } // An internal class that implements the public interface. // Despite the internal/public mismatch, this works. internal class MyInternalConcrete : IMyInterface { public int Somet...

Web services and interface compatibility

Adding a service reference to a web service (this is all WCF) in Visual Studio produces some generated code including a client-side restatement of the interface being exposed. I understand why this interface is generated: you might be consuming a 3rd party service and not have access to the actual interface. But I do, and the two are n...

OCaml lists

I'm having trouble with lists in OCaml. I've read conflicting statements saying whether or not the lists can be modified at runtime. Can the cons operator be used at runtime? Additionally, why is a doberman (see below) allowed to be in a list of chihuahuas? How would one go about adding another chihuahua onto the list (as attempted with...

UI interface and TDD babysteps

OK, having tried my first TDD attempt, it's time to reflect a little and get some guidance, because it wasn't that successful for me. The solution was partly being made with an existing framework, perhaps making TDD less ideal. The part that seemed to give me the biggest problem, was the interaction between the view and controller. I'll ...

How are Java interfaces actually used?

So lets say I have this interface: public interface IBox { public void setSize(int size); public int getSize(); public int getArea(); //...and so on } And I have a class that implements it: public class Rectangle implements IBox { private int size; //Methods here } If I wanted to use the interface IBox, i can't act...

How to pass an interface pointer to a thread?

Note: Using raw Win32 CreateTheard() API No MFC An interface is simply a pointer to a vtable Question: How to pass an interface pointer to a thread? Illustration: IS8Simulation *pis8 = NULL; ... CoCreateInstance( clsid, NULL, CLSCTX_LOCAL_SERVER, __uuidof(IS8S...

Method return an interface

Hi All, I'm thinking in this line of code IDataReader myReader = questDatabase.ExecuteReader(getQuest); I'm using DAAB but I can't understand how and what's the meaning of the fact the method ExecuteReader(DbCommand) returns an IDataReader Interface. Anyone can Explain, Please ...

Delphi 2009: Is it possibly dangerous to use TList<[any interface]> with default comparator?

Hello everyone, I am wondering if the usage of a generic TList<T> where T is any interface type (except IUnknown/IInterface) might be dangerous. I am heavily using interfaces and store them in lists. Some interfaces are my own, some are provided by some COM-interfaces, so COM is involved. I see a potential problem where checks for inst...

Why can't I define a static method in a Java interface?

Here's the example: public interface IXMLizable<T> { public static T newInstanceFromXML(Element e); public Element toXMLElement(); } Of course this won't work. But why not? One of the possible issues would be, what happens when you call: IXMLizable.newInstanceFromXML(e); In this case, I think it should just call an empty meth...

Interface Control Document examples?

I am leading a team of fellow student programmers this semester on a long-term project (long enough that I may graduate before it's done). I've worked with ICD's in an internship, but not everyone on the team has had this experience, and I can't show them the documents I worked with due to a non-disclosure agreement. Can anyone give ...