I have a ViewController that has its own NIB. I would like to embed that NIB inside of another master NIB. How can I accomplish this in Interface Builder and how do I reference it in code?
I wrote a wrapper DLL for some native c++ functions and compiled it in c++/CLI, then I added a reference to C# project, functions indicates there, but when I try compile project I get this error:
"Additional information: Could not load file or assembly 'lib, Version=1.0.3742.39593, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. "
What's the problem ?
Thanks.
Does anyone know a complete JSF 2.0 sample or open source application using JSF 2.0 features (Facelets, Composite Component, Templates, Ajax, Navigation, etc.). Would be a good reference to learn some best practices. I'm talking about an application that you would also use in production. The only ones I know are ScrumToys and PetCatalog which are delivered with NetBeans 6.9 and are "tutorial-like" applications.
It has to be self contained, some sort of Erlang runtime library, and the BEAM files. This is so that anyone can run the program with one click, by running a .exe off a network drive, without having to install Erlang or anything else.
I have the following code which loads and html file into a webview
- (void)awakeFromNib{
NSString *resourcesPath = [[NSBundle mainBundle] resourcePath];
NSString *htmlPath = [resourcesPath stringByAppendingString:@"/main.html"];
[[self mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:htmlPath]]];
}
How would i dynamically load a css file (in the most efficient manner) as it does not suit to have the css file link in the html file
Let's say I have a thread pool containing X items, and a given task employs Y of these items (where Y is much smaller than X).
I want to wait for all of the threads of a given task (Y items) to finish, not the entire thread pool.
If the thread pool's execute() method returned a reference to the employed thread I could simply join() to each of these Y threads, but it doesn't.
Does anyone know of an elegant way to accomplish this? Thanks.
Hi
im using qt , and i parse complex json data structure but i find my self doing to many
loops each time i need to parse this JSON , i wander how or what can be the best way to
handle big JSON structures
When should it be considered dangerous to use a private field all over the place in the methods of your class? I mostly just create the variable and set it to a default value like null. Then in my methods reference it and set it to an instance of that object type from the methods.
I don't know if my question makes sense but let me know if it doesn't and I'll clarify.
Title is quite self explanatory, but I have some animation being done in a loop triggered by CADisplayLink. However, as soon as I scroll a UIScrollView I have added to my view hierarchy, the animation stops immediately, only to return again when scrolling has completely stopped and come to a standstill....
Anyway to cancel this behaviour?
I know during the retrieve, I can use Include() to load related Entities (http://stackoverflow.com/questions/2632323/how-to-use-foreign-key-in-l2e-or-ef). but when I want to save or insert data, how to handle those reference Entities?
In an app I'm profiling, I found that in some scenarios this functions are able to take over 10% of total execution time.
I've seen discussion over the years of faster sqrt implementations using sneaky floating-point trickery, but I don't know if such things are outdated on modern CPUs.
MSVC++ 2008 compiler is being used, for reference... though I'd assume sqrt is not going to add much overhead though.
Hi All,
I m trying to leave a gap from left in select list, but its getting problem in firefox and safari please give me source code or any reference link from where i can work...
code which i use :
<select style="padding:10px">
<option>Male</option>
<option>female</option>
<option>other</option>
</select>
Thanks
hi every one, this may be a basic thing, but i couldn't find an answer by serching internet.
I have created a simple button - Istance name = "btnsample"
and there are two layers
layer 0- button design with rollovers -
layer 1- dynamic text field - instance name = "txtbtnlabel"
btnsample.txtbtnlabel.text = "new button label;
but it's giving followin error :-119:Access of possible undefined propety txtbtnlabel through a reference with static type flash.display:simpleButton.
how to solve this problem?
Hi
Is there any way to skip the default params, say suppose my method declaration is like this:
procedure Myfunc1(var isAttr1: Boolean = FALSE;
isAttr2: Boolean = FALSE;
isAttr3: Boolean = FALSE);
I can't call the function like this:
Self.Myfunc1( , , Attr3);
because I don't want unnecessary var declarations, at the same time I want the last param return value (it is a var type)
Thank for help in advance
I have office 2007 installed with .NET programmability checked.
From VS2005/VC#2008 Toolbox I tried to add new item which is axspreadsheet, unfortunately I could not find it from .NET Framework / COM reference
any ideas how to solve this problem? My main purpose is to load xls file to winform.
Thanks
I have subclassed a UITableViewCell and within this class I want to get it's height. How can I achieve this?
I have tried:
self.frame.size.height
but not sure if it is giving me the correct height value.
Hi, I have a web application where I would like to pull user settings from a database and store them for Global access. Would it make more sense to store the data in a Singleton, or a Session object? What's the difference between the two?
Is it better to store the data as an object reference or break it up into value type objects (ints and strings)?
Thanks!
window.addEventListener('unload', function(e)
{
MyClass.shutdown();
window.removeEventListener('unload',
/* how to reference the function itself here? */);
}, false);
The question in the comment.
1) Why must initialization value of field members be determinable at compile time?
2) But if the initialization value needs to be determined at compile time, then why am I able to initialize a A.b field using a reference to an object:
class A
{
B b = new B();
}
class B {}
Thank you
So, I am just starting Java and, even though I have looked in some question about it here at stackoverflow.com and elsewhere, haven't been able to find a straightforward answer to why isn't possible to overload a function just by changing the return type. Why is it so? Will that provably change in a future version of Java?
By the way, just for reference, is this possible in C++?
Thanks.
Hello,
gcc 4.4.3 c89
I am creating a client server application and I will need to implement some callback functions.
However, I am not too experienced in callbacks. And I am wondering if anyone knowns some good reference material to follow when designing callbacks. Is there any design patterns that are used for c. I did look at some patterns but there where all c++.
Many thanks for any suggestions,
.When i choose item from "kategorije" new items loads to me in SUB_kategorije, but when i choose item from SUB_kategorije and when i click on button it shows me this error:
Object reference not set to an instance of an object.
Line 101: kom.Parameters.Add("@podkategorija", SqlDbType.Text).Value = SUB_kategorije.SelectedItem.ToString();
This is my source...
dod_pit.ascx
dod_pit.ascx.cs
i have created iphone game.When i pause the game using pause button i quit cliking quit button...
Now when i start the game again ..the previous counter i created using this code...
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateTimerFunc) userInfo:nil repeats:YES];
the timer is 100 sec and moves to zero...now it start giving the difference of twwo ,,98,96,94
if i quit the game again ans start this time the difference will become of 4 96,92 ...its keep on increasing ....what is this issue?
kindly help
I have a button and would like to know its enabled state while stepping through code. This doesn't work in the debugger:
po self.myButton.enabled
It prints:
There is no member named enabled.
Is there another way to print out its state?
in silverlight project using name attribute in planeprojection gives Error 1 The type or namespace name 'PlaneProjection' could not be found (are you missing a using directive or an assembly reference?)
code i used for that
<Image Name="blabla.jpg" Height="200" Width="200" >
<Image.Projection>
<PlaneProjection Name="pp" />
</Image.Projection>
</Image>