interface

UILabel inside a UIToolbar using IB is invisible on run, how fix?

I want to show a total inside a toolbar. I put in IB the UILabel on top of the toolbar . However, when I run the app, the UILabel is totally invisible (but can set values on code fine). The most bizarre thing is that in other form, all work fine. I don't see why in one form work but not in another... Any idea in how fix this? Or why i...

distributed shared memory or not to be?

Hello, A quick design question for the worth. I need to share data between C++ client and Java server. The Client talks to the server using SOAP. The issue is - I have a generic interface serving all kinds of requests on the Java backend. I don't want to "pollute" is with specific kind of request object which will most of the times re...

How can I find which classes implement a given interface in my project/solution?

I have a solution. I have an interface. I have several classes that implement the interface. I can use "Find All References" in order to find where the interface is implemented, but it also returns results where the interface is the return type, or where a class explicitly implements an interface's method. Is there a better way to quic...

Oracle Financials GL Import

I'm working on importing data from our application into Oracle Financials GL. It seems simple with the GL_INTERFACE table, and many resources online, but I don't seem to understand it. A powerpoint presentation An import API I'm looking for a simple way to post a transaction of $X on a specific date, between 2 or more accounts. I'm ...

Useless interfaces

Why would you ever use interface it you are going to have only one implementation of it? ...

Creating nice GUI

I'm seeking graphic advice on how to have your interface look better. So far I've been focusing on usability but its starting to look like a Jakob Nielsen kind of interface. I'm searching for tutorials on how to pimp up my windows forms application or at least general guidelines on how to do so edit : thank you for the info. I was lo...

It looks like I'm instantiating this SpeechAPI interface. How is that possible?

Hi, I am using Microsoft Text-to-Text Speech feature in my project. But I have a question about that, actually not directly about that. So : Normally programmers when creating Interface, they put I as a prefix of the interface name like IReadable,IEnumerator etc. But I've come across something that actually shocked me. in Microsoft Te...

Tabbed user interface in C#

Hi! I want to create a simple tabbed interface app. I did it before in WPF using an usercontrol inside of each tab, and I comunicate with the principal form searching for a parent element (the form, or the tab control) How could I made the same in WinForms? Which element need I put inside of each tab? Thanks. ...

Interface Design - Explicit or Implicit Inclusion

When several text fields on a form are logically grouped into a groupbox and are optional in the scope of the form, is it better to add a check box saying "Yes I want to fill these fields out" or is best to just leave them blank? The checkbox does provide a useful flag saying 'Hey, group XYZ is valid." ...

What is the C interface to Lua for accessing a table's key/value pairs?

In Lua, using the C interface, given a table, how do I iterate through the table's key/value pairs? Also, if some table table members are added using arrays, do I need a separate loop to iterate through those as well or is there a single way to iterate though those members at the same time as the key/value pairs? ...

How to perform a binary search on IList<T>?

Simple question - given an IList<T> how do you perform a binary search without writing the method yourself and without copying the data to a type with build-in binary search support. My current status is the following. List<T>.BinarySearch() is not a member of IList<T> There is no equivalent of the ArrayList.Adapter() method for List<T...

Extracted Interface naming conventions

I'm currently refactoring some code to make it more testable. Specifically, I am extracting the interface of several classes to allow easy creation of test doubles. I'd like to keep the public interface the same to this code, naming the interface after the original class. However this leaves me with the problem of what to call the ori...

Programming to Interfaces, how generic is too generic?

How far back up the implementation hierarchy do I want to go when returning an object? Using the Java collection interface as an example, would this be appropriate? Collection outerMethod() { return innerMethod(); } List innerMethod() { List list = new ArrayList(); //do something with the list that requires a method in the...

Correct way to lay out Interface C#

Hello all, I'm having a problem designing part of my program (not writing it, for once!). This is kind of hard to explain without writing a novel, so I'll try and be brief. Basically, I have a program which reads/writes parameters from a piece of hardware. Currently, it does so over Serial, but eventually, I'll like it to do so over U...

different ways to define a method in an interface

Is there any difference between: interface A{ public a(); } and interface A{ abstract a(); } and interface A{ a(); } ...

java: basic web service interface without a web server

hi everyone, how hard is adding a basic web services interface to an existing java server application without having to turn it into a .war, or embedding a small web server like jetty? say, xml-rpc instead of more modern approaches, if it helps. if not too hard, can you suggest a starting point? thank you in advance :) ...

BDC Web Part connection Interface error.

I want to provide "Query Value" to the BDC List WebPart from (Provider) businessdata filter webpart. I get fllowing error when i try to connect. "The provider connection point (BusinessDataFilterWebPart) and the consumer connection point "BusinessDataListWebPart" do not use the same connection interface." Following is my code snippet. ...

Is there any ready-made calendar control for iPhone apps?

I am building an applicaiton for the iPhone that will display upcoming and past events. I settled for a list view, but then I realized that a calendar (just like the one displayed in the "month" view in the built-in Calendar application) would be a best match (that is, this one). However, the iPhone Human Interface Guidelines just menti...

Is it better to pass an *interface* or an *object* as a parameter to a function?

I'm trying to convince a colleague that a function should take an interface as a parameter, and not the object itself. I think small objects can be fine to pass across, but for large ones I would give them an interface and just pass the i/f over, not the whole thing. Note that there will only ever be one of these large classes - the i/f...

Can you program Java collections to an interface and use Serializable?

I've gone through and programmed all my domain level logic to interfaces. Now I find that when I want to put data in a bean, the bean doesn't work because the Collection interfaces (Collection, List, Set, etc) do not implement Serializable. Do I need to refactor all my code to use concrete types or is there a better course of action her...