object

Pass a Layer object to an other class. How can i convert? Objective C

Hi, I have a .h file called LayerManagement.h, it defines a Layer variable: Layer *managelayer; I have a Layer class called HelloLayer, it defines: +(id) scene { Scene *scene = [Scene node]; HelloLayer *thislayer = [HelloLayer node]; man = [[ManageMove alloc] init]; > man.managelayer = thislayer;// can i do...

bottom up animation using Pushviewcontroller ?

hi, I am new to Iphone SDK.i am using following code.but the animation happens from Right to Left when i click this button.i want to do fro botton to Up - (IBAction)clickedsButton:(id)sender { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1.0]; [UIView setAnimationDuration:0.75]; [self.navigati...

Javascript: know when an object will be garbaged

Hi all, is there a way to know when an object will be disposed by GC? My object (call it A) write some variables in a global array-object, so when the object will be garbaged its own variable will stay in the global array-object, taking up memory. ps. i have numerous objects A and i prefer to not call "manually" a method to free my glo...

Explore a COM Object in PHP

What would be the proper way to explode a COM object for debugging? I have a 3rd party function that returns a multilevel object. The documentation is non existant, so I'd like to be able to echo everything out of the object or debug it in Komodo IDE. Komodo just says Object and nothing else. Maybe convert to array? I know some of...

Getting the Percentage of changes

How can i get the percentage of the changes which happened? Like 1. date 1343360810 objectId 1628 field 10 value 3 1. date 1242360811 objectId 1628 field 10 value 5 1. date 1243364812 objectId 1628 field 10 value 5 1. date 1240360814 objectId 1628 field 10 value 5 This would mean the v...

interface classes

i"m new to interfaces i have this code example : public class DALF { public class Car { public int AddEdit(int? CarId, string Name) { .... } public DataTable Get(int? CarId) { ..... return CarD.Get(obj); } } public class Worker {...

.NET 3.5 - Object not implementing IComparable?

When converting a project (in which a template method of IComparable was used a few times) from VS 2005 to VS 2008 I've got some errors: Error 12 Type argument 'Object' does not inherit from or implement the constraint type 'System.IComparable'. Is this an actual fact that System.Object no longer implements that interface, or somethi...

memory layout c++ objects

Hi, I am basically wondering how C++ lays out the object in memory. So, I hear that dynamic casts simply asjusts the object's pointer in memory with an offset; and reinterpret kind of allows us to do anything with this pointer. I dont really understand this. Details would be appreciated! Thanks. ...

Linux: How to get full name of shared object just loaded from the constructor?

On Windows, several arguments are passed to the DllMain constructor: BOOL WINAPI DllMain( __in HINSTANCE hinstDLL, __in DWORD fdwReason, __in LPVOID lpvReserved ); From hinstDLL I can get the fully qualified file name of the DLL itself using GetModuleFileName(): LPTSTR str = new TCHAR[256]; int libNameLength = GetM...

PHP Object Validation

I'm currently working on an OO PHP application. I have a class called validation which I would like to use to check all of the data submitted is valid, however I obviously need somewhere to define the rules for each property to be checked. At the moment, I'm using arrays during the construction of a new object. eg: $this->name = arra...

Delphi: SetLength() on argument of type "array of TObject"

I'm trying to resize an array of a certain class passed as an argument, e.g. procedure Resize(MyArray: Array of TObject); begin SetLength(MyArray, 100); end; However, this raises an error "E2008 Incompatible types". Is it true that you can't do this (I've seen rumors, but no official documentation) or am I doing something wrong? ...

Vb.Net Object on top of another

In VB.NET I made a web browser and I wanted there to be an image behind the web browser slightly peeking out. I put the image on after i put the web browser on the form and I cant get it to be behind the browser. Can anyone tell me how to do this? ...

C# object reference

Hello, i don't know what you call it, but how would i change fields / use methods from an object, with the object i want to call with, a field? ...

Ruby forgets local variables during a while loop ?

I'm processing a record-based text file: so I'm looking for a starting string which constitutes the start of a record: there is no end-of-record marker, so I use the start of the next record to delimit the last record. So I have built a simple program to do this, but I see something which suprises me: it looks like Ruby is forgetting lo...

Parsing JSON Object Array

Hello All, I am very new to using Jquery and Json. I have a servlet that is returning an array of JSONObject's ( basically a JSONArray object ). I am trying to parse this array within JavaScript and am running into trouble here. I have a javascript variable "var result" that gets the result from the servlet and I am trying to parse it...

How to get the text value of an object?

How do I get the text value of an object in order to display it in a table? Other posts say objects are not NSStrings and you need to ask the object for its text. But how? The error is this: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[Names isEqualToString:]: unrecognized selector sent to...

Object serialization duplicating nodes

Can anyone tell me why my output is duplicating the 'FirstNode'? using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Xml.Serialization; class Program { static void Main(string[] args) { Root root = new Root(); FirstNode firstNode = new FirstNode(); firstNode....

Accessing Method from other Classes Objective-C

Looked for an answer for this question, but I haven't found a suitable one yet. I'm hoping you guys (and gals) can help me out! (This is for an iPhone app) Alright, I have a Mutliview application. Each view has it's own class, and everything is happy. However, the different classes sometimes call the same method. Up until now, I ha...

Objective C iPhone when to set object references to nil

Hello, I have been developing with objective C and the Cocoa framework for quite some time now. However it is still not absolutely clear to me, when am I supposed to set object references to nil. I know it is recommended to do so right before releasing an object that has a delegate and you should also do so in the viewDidUnload method f...

Accessing object properties from within another object (JavaScript / jQuery)

Hi, I am trying to access properties of a config object from within another object: var myConfigObj = { $myCachedSelector: $('#mySelector') } var myObj = { $selector: myConfigObj.$myCachedSelector, url: 'http://www.someurl.com/somepath' } $.each([ myObj, mySecondObj, myThirdObj ], function() { this.$selector.load(this.url, fu...