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.
General practice for naming methods which create/return singletons is `getInstance()`. I don't understand the situation when you can't find the place in code where singletons created, but you can search for this method name.

If you want to catch the exact moment of singleton creation - you can use [AOP](http://jac.ow2.org/docs/introduction.html). AspectJ is a good example in java. You will be able to execute your code before/after creation of class or calling `getInstance()` method.

If your question is about reusing of created Singletons, then search this site. [For example](https://stackoverflow.com/questions/5179893/c-sharp-singleton-code-reuse)