Archive for March, 2009

Mac OS X Application Bundles

How to (programmatic) find the name of the executable in a bundle:

       //l_AppBundleDir is a string that holds the path of to the Bundle
    NSBundle *l_Bundle = [NSBundle bundleWithPath:l_AppBundleDir];
    NSString *l_Executable = [l_Bundle executablePath];

    if(l_Bundle == nil) {
        //Bundle does not exist. Print error message and bailout
        return;
    }

    NSLog(@”Executable file exists at %@\n”,l_Executable);

Another interesting NSBundle method -infoDictionary
returns a dictionary from the bundle’s Info.plist file. It returns a empty dictionary if no plist file is found.

Thali Vadam


Ingredients:

Raw rice- 2 cups
Green chillies- 6
jeera or ajwain- 1 tsp
salt to taste
Oil for smearing

Method:

Wash and soak rice for a couple of hours. Grind fine with salt and chillies and leave overnight to sour a little. Add jeera or ajwain and mix well.

Smear oil lightly on thali vadam plates and lightly spread batter on each plate. Place the stand in a cooker or steamer and steam for two minutes. Remove stand from cooker and remove the vadams on to a plate and dry in sun. Repeat until all the batter is done. Dry well and store tight in canisters. This can be either microwaved or deep fried.