Category Archives: objective C

iOS UITableView or UIScrollView with keyboard input needs resigning

You want users to enter some data into a form or some input field. Well good for you! Sometimes it can become an interesting process to figure the right way to display, and then resign, that keyboard so it makes … Continue reading

Posted in iOS, objective C | Leave a comment

Go from view controller to root using popToRootViewControllerAnimated

Sometimes I have the need to go from a certain view controller to the root. Normally this is because you get too deep in view controllers and you don’t want the user to have to hit the back arrow over … Continue reading

Posted in iOS, objective C | Leave a comment

property list in obj c on mac. setters/getters

To start we need a prop list. So go to file->new file. Within the Resource section under Mac OS X you see a property list file. Hit next and give it the name Data. once you have done that, click … Continue reading

Posted in mac development, NSDictionary, objective C, OS X | Leave a comment

Easy inside bundle folder creation for Mac

Quick tidbit of creating folder within the bundle path NSFileManager *fm = [NSFileManager defaultManager]; NSError *error; NSString *bundleRoot = [[NSBundle mainBundle] bundlePath]; NSString *dataPath = [NSString stringWithFormat:@”%@/picImages”, bundleRoot]; NSLog(@”dataPath is %@”,dataPath); [fm createDirectoryAtPath:dataPath withIntermediateDirectories:NO attributes:nil error:&error];

Posted in mac development, objective C, OS X | Tagged , , | Leave a comment

NSDate

I have recently been using NSDate for a lot of diffrent aspects of my apps. I thought I would post the easiest way I have found to get at the date and its parts. NSDate *date = [NSDate date]; NSString … Continue reading

Posted in iOS, mac development, objective C, OS X | Leave a comment