Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I specify the default object instance for a PluginFamily?

StructureMap FAQ
There are several ways. The first way is to mark the DefaultKey property of a [PluginFamily] attribute. The second way is to set the DefaultKey attribute of a <PluginFamily> node in the config file. Either way, this value refers to a named instance for the PluginFamily. The DefaultKey can be overriden at runtime through ObjectFactory or at configuration time by using the Profile and Machine nodes in the config file.
Related Questions

How can I specify a PluginFamily by using custom attributes?

StructureMap FAQ
Mark an interface or class declaration with the [StructureMap.PluginFamily] attribute. Optionally, specify the default instance key. Configuring a PluginFamily in the config file will override this attribute Example [StructureMap.PluginFamily("Default")] public interface IGateway { void DoSomething(); string WhoAmI{get;} }
Related Questions

How do I specify the path for the FolderBrowser instance when it opens the first time?

Forms - Windows Forms FAQs
In the .NET Framework 1.1 there is a SelectedPath property that will let you do this. Contributed from George Shepherd's Windows Forms FAQ
Related Questions

How do I pass an instance variable's name to another object?

snitfaq - Snit's Not Incr Tcl, OO system
In Tk, it's common to pass a widget a variable name; for example, Tk label widgets have a -textvariable option which names the variable which will contain the widget's text. This allows the program to update the label's value just by assigning a new value to the variable. If you naively pass the instance variable name to the label widget, you'll be confused by the result; Tk will assume that the name names a global variable. Instead, you need to provide a fully-qualified variable name.
Related Questions

How do I bind to an existing object instance?

Windows Presentation Foundation SDK : WPF Basic Data Binding...
In some cases the source object that you bind to can only be created at run-time, such as a DataSet object that???s created in response to a database query. In those cases, you need to set the DataContext property of your target object to the instantiated object programmatically. Example: There are two special cases. First, if you are binding to a property of another element in the same scope, then you use the ElementName property to specify the source. For example, you can bind the TextBlock.
Related Questions

How do I specify a specific combination of frames instead of the default document?

Web Authoring FAQ: HTML Frames (Web Design Group)
This is unfortunately not possible. When you navigate through a site using frames, the URL will not change as the documents in the individual frames change. This means that there is no way to indicate the combination of documents that make up the current state of the frameset. The author can provide multiple frameset documents, one for each combination of frame content. These frameset documents can be generated automatically, perhaps being created on the fly by a CGI program.
Related Questions

So I can pass an instance of a value type to a method that takes an object as a parameter?

Andy Mc's C# FAQ for C++ programmers
Yes. For example: class CApplication { public static void Main() { int x = 25; string s = "fred"; DisplayMe( x ); DisplayMe( s ); } static void DisplayMe( object o ) { System.Console.WriteLine( "You are {0}", o ); } }
Related Questions

Can we use Orbix security to provide Access control at Object instance level?

CORBASEC Frequently Asked Questions and Answers
Extended Question: When I want the Server to authenticate it self to the Client, or when I want to put a secure invocation policy on the Server, then I get an error message telling me "Authentication Security Exception", "Target is not secure". The opposite is no problem, the Client can authenticate itself to the server.
Related Questions

How do I configure an object instance in the config file?

StructureMap FAQ
Create an <Instance> element within the correct <PluginFamily> node in StructureMap.config. The ConcreteKey of the Plugin class to use and an identifying InstanceKey must be defined. The properties to pass into the constructor function are contained in nested <Property> elements. Example <PluginFamily Type="StructureMap.Testing.Widget4.IStrategy" Assembly="StructureMap.Testing.
Related Questions

How can I maintain a single instance of an object in an applet?

jGuru: Patterns FAQ Home Page
In start(), instead of always creating a new object, return the existing one if it exists or create a new one if it doesn't. Yes, and this can be the preferred pattern in some cases.For example, suppose you were writing a supply chain management system for a retail chain. Each...
Related Questions

Can I specify the default tree level for summary reports?

WISDM Frequently Asked Questions
Yes. Select the "Edit Profile" link from the main navigation menu and the following screen will load: There are several options on this screen related to trees. The first option is "Default level for unlisted trees". This option dictates how the summary reports will first appear. The summary report will be shown at either the most detail (specific accounts) or the least detail (Revenue and Expenses). In addition to this option, you can set specific levels for specific trees used frequently.
Related Questions

How do I specify default values for structs?

Uno/FAQ - OpenOffice.org Wiki
It is not possible to specify default values for structs because these defaults cannot be used in other object models (e.g., CORBA). It is also impossible to emulate default values for member variables by modifying the unoidl-generated default constructors for structs. The default constructors set enums to the first enum value, numbers to 0, and the other types use their default constructors. The generated inline default constructor can be found in the .hpp file.
Related Questions

How can I change my default object code?

eBuy: FAQs
You may change your default object code by accessing your "User Profile," clicking on the "Purchasing" tab, and then clicking on the "Custom Fields" tab.
Related Questions

I have a .instance file. How do I get an actual object instance?

NetBeans Master Developer FAQ
Using InstanceCookie (note that if you have an entire folder of .instance files, there's a more efficient way to get all of them): DataObject dob = DataObject.find (theDotInstanceFileObject); InstanceCookie ck = (InstanceCookie) dob.getCookie (InstanceCookie.class); MyObject obj = (MyObject) ck.instanceCreate(); You see a text in IDE such as a menu item, window title, node display name, etc. and you want to change it. But first you need to find where in the code it is implemented.
Related Questions

Can the object move?

In Nomine Frequently Asked Questions - Celestials
Also depends on the object. Anything designed to bend or move will be able to do so. So a door could open and close, a car could drive around, a ball could roll, a puppet could walk around. But a candlestick couldn't move around on its own, since it is inflexible. Neither could a hammer lift itself to hammer a nail (or whatever). Certain Songs can give movement abilities, however. For example, Numious Corpus: Wings and that toaster vessel . . .
Related Questions

How can I specify default parameters in IDL?

ORBit2 Frequently Asked Questions - FAQs
IDL does not allow to specifiy default parameters. There are mainly two reasons for that. First, IDL is some kind of least common denominator of all the languages for which a CORBA mapping is available. Many languages do not support the concept of default parameters and thus have difficulties in supporting this feature in the mapping. And second, default parameters are not really necessary.
Related Questions

If I should always specify "delete", then why isn't it the default?

CVSup Frequently Asked Questions
Originally CVSup was designed to be a drop-in replacement for sup. Because of that, the defaults had to be the same whether they made sense or not.
Related Questions

Is there any way to specify the default sort order?

Exontrol Software - ExGrid FAQ page
By default, the column gets sorted descendent when user clicks the column's header. The DefaultSortOrder property of the Column object specifies whether the default sort order for a column is ascending or descending.
Related Questions

How do I specify a different jobOptions file, rather than the default?

Some answers to Frequently Asked Questions about pdrApp
The pdrApp main program uses an environment variable JOBOPTIONS to determine the name and location for a jobOptions file.
Related Questions

What does nillable mean in schema? How to specify it in instance document?

JavaChina: FAQ on XML by Roseanne Zhang
In database systems, we use NULL to represent the value of an attribute that is unknown or not applicable. In XML Schema, we can use nillable attribute to indicate that whether the element's content could be nil, as in and this element must not contain any content. The namespace prefix are defined as xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" There are many misspelling on the web.
Related Questions

I have a folder full of .instance files. How do I get any/all of the object instances?

NetBeans Master Developer FAQ
In NetBeans 6, if the folder is in the System Filesystem (as it almost always will be), it is very simple: Lookup myObjects = Lookups.forPath ("path/to/folder/in/sysfs"); (note the separator is always / with NetBeans filesystems). In NetBeans 5.x and earlier, to get a folder from the system filesystem and get all of the .instance files of some particular class in it, instantiated as java objects: FileObject myFolder = Repository.getDefault().getDefaultFileSystem().
Related Questions

Why can't I obtain instance variables in Prolog for an object returned by javaMessage?

InterProlog FAQ
When you create a Java object from the Prolog side, the message result on the Prolog side is always an InvisibleObject specifier, which encapsulates a compact reference to the Java object - just an integer, which is a key into an ObjectRegistry, an object kept by a PrologEngine. So the object variables are not returned to Prolog.
Related Questions

How do I check if an object is an instance of a given class or of a subclass of it?

Python Frequently Asked Questions
unobvious method is to raise the object as an exception and to try to catch the exception with the class you're testing for: def is_instance_of(the_instance, the_class): try: raise the_instance except the_class: return 1 except: return 0 This technique can be used to distinguish "subclassness" from a collection of classes as well try: raise the_instance except Audible: the_instance.play(largo) except Visual: the_instance.
Related Questions

Why not now and why not by default?

Darik's Boot and Nuke FAQ
Wiping the HPA would surprise and strand people that expect the HPA to have rescue materials. The HPA is a low risk because it is not accessible during normal operations.
Related Questions

Why isn't setInterval working correctly for my object instance/class?

senocular.com Tutorial: Flash Frequently Asked Questions (FA...
The Quick: You need to use the secondary setInterval syntax, var interval = setInterval(object, "method", time [,arguments]), in order to specify object scope. The Details: There are two ways to use setInterval. The most common "primary" way of calling setInterval is by using setInterval with a passed function reference and a time interval in milliseconds for it to repeatedly run.
Related Questions

Is it possible to specify object-relational mappings between EJBs?

The OC4J EJB container implements the O-R mapping feature as prescribed in the draft EJB 2.0 specification. Since the specification is not yet finalized, this feature may change as specified in the final version of the EJB 2.0 specification. The EJB container also implements an O-R mapping that is not dependant on the EJB 2.0 specification. To use this perform the following steps.
Related Questions

How do I specify the position of an architectural object in GENESYS II?

Frequently Asked Questions
Objects are located by the center of the volume of the object. As an example, let's consider a T-shaped partition (Architectural Objects; Architectural #3) measuring 10x8x5 feet in X, Y, and Z, respectively. Specify its location as X=5, Y=4, Z=2.5. Notice that the Z location of 2.5 feet will place the partition flush with the floor and the X and Y dimensions place it up against the lower left corner (plan view) of the room.
Related Questions

What is an instance?

SAP ABAP interview questions
Ans When you call a function module, an instance of its function group plus its data, is loaded into the memory area of the internal session. An ABAP program can load several instances by calling function modules from different function groups.
Related Questions

How can I specify a template other than the default one on the command line? In the scripts?

Grace FAQ (for Grace-5.1.12)
Template is just an empty (in the sense that there are no data sets) but otherwise a valid project file. So just put your favorite template's filename as the first argument on the command line. If your script creates several plots, use 'new from "filename"' to initialize a new project from the non-default template.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact