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.
I would use an `enum`

```
enum Singleton {
    INSTANCE:
}

```

or something similar which cannot be instantiated more than once and globally accessible.