Question: i have an array with dictionaries,

. how to get the index for a specific dictionary... [where I got the data for the dictionary i want to find, but need the index is on]

```
NSMutableDictionary *dictois = [[NSMutableDictionary alloc]init];
[dictois setObject:@"easySpritedd" forKey:@"Nombre"];
[dictois setObject:@"X" forKey:@"290"];
[dictois setObject:@"Y" forKey:@"300"];

int fooIndex = [self.bloquesArray indexOfObject: dictois];

```

but as you see i dont know yet how to get the dictionary for comparing in the indexOfObject

thanks!

Answer: 
A [Singleton](http://en.wikipedia.org/wiki/Singleton_pattern) usually has a private constructor, thus the Singleton class is the only class which can instantiate the one and only singleton instance.
It's the responsibilty of `singleton class` developer to make sure that the instance is being reused on multiple calls.

As a user, you shouldn't worry about it.

```
class Singelton
{
    private static Singelton _singelton = null;

    private Singelton()
    {

    }

    // NOT usable for Multithreaded program
    public static Singelton CreateMe()
    {
        if(_singelton == null)
            _singelton = new Singelton();
        return _singelton;        
    }
}

```

Now, from anywhere in your code, you can instantiate `Singelton`, how many times you like and each time assign it to different reference. but c'tor is called ONLY once.