object

use three20 ui into interface builder

hi all, I added to my project three20 lib, compile ok with no problem... but If I wish add a TTLabel for example directly by Interface Builder, how can I do this? thanks in advance ...

I'm stuck on my homework, can I get some feedback? java

package javaapplication1; public class Main { public static void main(String[] args) { Student stu = new Student(); System.out.println (stu.getStudentid() +":" + stu.getStudentname()+":"+stu.getStudentgrade()); //1:Bill:A Student stu2 = new Student (); System.out.println (stu2.getStuden...

Trouble understanding and creating dynamic JavaScript objects

I hope my code can explain itself, I am almost there, I just am stuck on the way how to merge optional data into a JSON object with multiple levels (is that even what it is?) //get video list - example: video1.flv;test23.flv;Grabledable.flv var files = j('.videos').html().split(';'); // assume first we have one video, so no need of play...

Problem with decoding JSON as array or object with PHP

I'm trying to use PHP to process JSON and am having trouble parsing it as either an object or a string. Here is the JSON feed: stdClass Object ( [Response] => stdClass Object ( [Meta] => stdClass Object ( [ExecutionTime] => 0.41602396965 ) [Data] => stdClass Object ( [Entity] => stdClass Object ( [id] => 1 [name] => Wal-Mart Stores [de...

Wrong convert Object from JSON.

First, sorry for my poor English. Second, my problem. I trying convert to JSON and back this structure: class Revision{ private String auth; private HashMap<String, List<HashMap<String, Object>>> rev; public String getAuth(){ return auth; } public HashMap<String, List<HashMap<String, Object>>> getRev(){ ...

AS3: Impossible to copy DisplayObjects with content?

How to copying display objects (sprites, movieclips etc) while keeping thier content (graphics, added display objects etc)in AS3? The most commonly suggested solution by Kirupa (http://www.kirupa.com/forum/showpost.php?p=1939827&amp;postcount=172) doesn't seem to copy any graphics or child display objects: // create a sprite var s:Sprit...

Security object model .net

Hi, I am trying to build a simple username-password-role based security object model for my application. The requirement is that user will enter using username and password and he/she will have enable and disable access to the part of the system depending upon whatever role they fall into. which I think is fairly simple idea. Now here...

Map dataset to objects

Hi, I have stored procedures that return couple of tables, and i want to map objects to the tables. Until now, i worked with type data set, and i want to stop working with them. I am looking for suggestions on how to do that, i thought about reflection, or iterate through each table in the data set and populate my object, or split the p...

jquery UI problem sending string extracted from ui.item object

I have 2 sortable, connected lists with pics: Album and Favorites. When I drag and item from Album -> Favorites I want to check if it's already in the Favorites list. If it is, do NOT accept it (maybe disable sorting or something?) If it is not, clone the item back to the original index in Albums (connected sortable lists do only move it...

set object method Parent

i have: object[] obj = new object[button1, label1]; // object parent; // some Panel i need for (int i = 0; i < obj.Length; i++) obj[i].Parent = parent; How to get it? ...

Copy javascript object with private member

Hi, I've looked all around and found nothing to help me. Why on earth can't I clone a javascript object with private members without making them quantum entangled? Just look at this code... It's a plain private property with getter and setter. Somehow if I call the public setter on one instance, the cloned one gets changed too. Why? Ca...

is there any way to change default frame sizes of an imageView, textLabel and detailTextLabel of cell?

Hi Guys, I am trying to change frame sizes of an imageView. textLabel and detailTextLabel of UITableViewCell property on inside the UITableView. I tried with change the frame size, resizing mask, resizing subviews and so on, but there is no use. Is there any way to change default frame size? and I am using UITableViewCellStyleSubtitle. ...

creating an object/class and using it in jquery

Hi sorry if the name of my question is not correct. i am trying to create an image rotator, but i would like to be able to re-use it more than once in a page, so i am trying to create it as an object/class. I have about 5 or 6 images on a page. i would like to have each image as a rotator, displaying a new image every 2 seconds or so...

What is the most general python type to which I can add attributes?

Hi, I have a class Foo with a method isValid. Then I have a method bar() that receives a Foo object and whose behavior depends on whether it is valid or not. For testing this, I wanted to pass some object to bar whose isValid method returns always False. For other reasons, I cannot create an object of Foo at the time of testing, so I ...

Variable Class Name Java

I'm creating a new object that takes a string and a class. Let's say I have a class called "Quiz.java". What works: headerItem = new TreeFieldItem(new QuizMenuItem(key, Quiz.class)); My "value" String returns as "Quiz". How do I make this work? private ArrayList<TreeFieldItem> getListItems() { ArrayList<TreeFieldItem> arrayL...

Netbeans Code Complete not activating when looping through array of objects

In my Netbeans PHP projects, I recently started stuffing custom objects into arrays in order to increase performance. I found its much faster to query the database and get a bunch of objects all at once instead of querying over and over again. I love the new approach, except when I loop through the array and try to access each of the...

Static member object initialization failure

I have a static library with the following code: h file: class Foo { public: Foo() { a = 4; } int a; }; class Bar { public: static const Foo foo; }; cpp file: const Bar::foo = Foo(); My problem is that Bar::foo does not get initialized with a=4 until some time after main(). Before then a=0. I'm trying to ...

Comparing objects in ruby

Consider this: class Aaa attr_accessor :a, :b end x = Aaa.new x.a, x.b = 1,2 y = Aaa.new y.a, y.b = 1,2 puts x == y #=>false Is there some way to check if all public attributes are equal in classes of same type? ...

Is Function really an Object

I am a self taught web developer and am still trying to come to grips with some JavaScript fundamentals. Below are some quotes extracted from Douglas Crockford's Good Parts. "Functions in JavaScript are Objects" "In JavaScript, arrays are objects, functions are objects, regular expressions are objects, and, of course, objects are obj...

How do you use a @ symbol in the name of a PHP object

I've got an XML file that has the label @attributes for one of the names SimpleXMLElement Object ( [@attributes] => Array ( [PART_NUMBER] => ABC123 I want to make a reference to this object like $product->@attributes['part_number'] but of course the @ symbol causes an error. So how do I reference this item in ...