Showing posts with label MacBook. Show all posts
Showing posts with label MacBook. Show all posts

Saturday, April 26, 2014

Find the user document directory in Simulator

One day, I want to backup my Sqlite database created inside the Simulator to my MacBook data directory and I was wondering if this is possible. Yes, it is possible. The files that was created in Simulator is physically located in your MacBook.

You can find the physical directory with the codes below:

  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  NSString *documentsDirectory = [paths objectAtIndex:0];

Sample output:

  /Users/{your Macbook user name}/Library/Application Support/iPhone Simulator/7.1/Applications/{random number}/Documents

Tuesday, August 28, 2012

Recording with QuickTime

You can record almost anything with your MacBook. Run QuickTime Player.







Then, choose File and select the options that you want. It's powerful and fun.


Thursday, August 23, 2012

Capture screen snapshot in MacBook

Try this
  • Command + Shift + 3 => capture full screen.
  • Command + Shift + 4 => then, highlight the area that you want.
The screen shot will be saved onto the Desktop. You might have to move the file with Finder.

Capture your face in MacBook

Double click on "Photo Booth" or call out Finder \ Application and then double click on Photo Booth.