Questions tagged [object-state]

16 questions
6
votes
3 answers

How use bit/bit-operator to control object state?

I want to create light object data-package to pass between client and server applications. It is a so simple task, that I can control with only 1 byte, so each bit in a byte will have a different meaning, Using only the bit 0 = False 1 =…
Cesar Romero
  • 4,027
  • 1
  • 25
  • 44
4
votes
2 answers

Serialize & print the entire state of an object while debugging

While debugging an ASP.NET application, I want to get a print-out of the entire state of a very large object. I want all the properties and values in that object and the same for every object-property, recursively. Because the front-end of the…
Jonathan
  • 32,202
  • 38
  • 137
  • 208
3
votes
2 answers

save and restore state of a tab bar controller

I have an application that has a UITabBarController with two tabs, each having its own navigation controller. Now I want to store the state of the application when the user closes it, so that when the user relauches the application will show the…
2
votes
3 answers

Is there an easy way to remove the same object from 2 linked lists?

I have 2 linked lists. I have the same object in both of those lists. By same object, I mean the object has the same state, but is referenced by a different object pointer. I can call .remove(object); from the first list to remove it, but if I do…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
2
votes
1 answer

Reconstruction of Object States in C++

I want to employ an automatic unit test generation approach in C++ with the help of LLVM. The approach should automatically acquire the states of specific objects during a dynamic analysis of the application under test (AUT). After the data has been…
1
vote
2 answers

Getting the real State of SelfTracking Entities, including Navigation Properties

I would like to change the display of objects if they have unsaved changes. I thought I could just use ChangeTracker.State, but that doesn't change to Modified if I change a Navigation Property. For example, a Contact object contains Navigation…
Rachel
  • 130,264
  • 66
  • 304
  • 490
1
vote
2 answers

How to Make Everything (Counters, Variables) to null of an Object?

I want to know that how can I make a an Object again go back to its initial stage. In my case I make a fragment and initialize it. I want that when it goes back to another fragment, and then back to first one, all values and variables of the first…
Abdur Rahman
  • 894
  • 1
  • 11
  • 27
1
vote
0 answers

Get object state across different controller in php

When URI "/service/add" , "/service/update" hit.. I want to update $service class member of Service Class. Basically an persistent Object to handle below issue "Issue#101": . Basically I want to update (adding/ updating / removing some array key…
devzone
  • 49
  • 1
  • 7
1
vote
1 answer

Local state of a variable

I am trying to fully understand Objects and local states of their variables This code seems to produce different results for the same procedure called multiple times, meaning the local variable changes: (define new-withdraw (let ((balance 100)) …
user3450695
  • 2,281
  • 4
  • 16
  • 16
1
vote
5 answers

NSTimer stops after incrementing once

I have an NSTimer which I want to update a label every second. My code is: - (IBAction)OnClickEmergencyButton:(id)sender { emergencyAlertTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(emergencyTimer)…
motox
  • 759
  • 10
  • 17
0
votes
1 answer

Hibernate flush() and Cascade.PERSIST

I have been working on Hibernate since sometime and I never really paid attention to the flush() method until yesterday. I understand that flush() is invoked automatically when the transaction is committed. I am working on a sample Library…
SB.
  • 1,887
  • 2
  • 19
  • 31
0
votes
1 answer

Math operation in React State

I want to display the input of % value. When I log this it showing properly but can't display in page. Want to display the input of % value below the input section: const [rcommission, setRcommission] = useState({ aeps: "", matm:…
0
votes
2 answers

How to do different types of object state validation

I need to provide records to the caller from one or two different data sources and either within a specified date range or year range. My dilemma is should I use overloaded methods or a Request object with state validation logic. So either: public…
bez
  • 177
  • 1
  • 14
0
votes
2 answers

how to maintain the state of the object in web service

Is it possible to send the object to the web service and the web service returns the object? is it possible to maintain the state of the object while sending it to the user through web service? can anybody suggests some links which helps the above…
priyanka
  • 543
  • 4
  • 10
  • 18
0
votes
1 answer

Codeigniter: preserving objects when linking from view

I am new to both PHP and Codeigniter. I am loading a view from my controller. This view then has a form_open in it that directs to a function within that controller. Can I use variables previously set in my controller within that function? For…
dimab0
  • 1,062
  • 8
  • 10
1
2