Skip to content

Posts from the ‘OSX Tips’ Category

10
Aug

Go to beginning or end of line in Xcode and other navigation tips

Here are some very basic navigation tips every programmer that works with Xcode must know and use them.

Tip 1. Go to the beginning or the end of line

Here is a quick tip: to go to the beginning of a code line in Xcode press:

Cmd + left arrow key

To go to the end of line press:

Cmd + right arrow key

Tip 2. Jump from word to word

To jump from word to word press:

Alt + left arrow key (to jump to left word)

or:

Alt + right arrow key (to jump to right word)

Tip 3. Move cursor a page up or down

To move cursor one page up press:

Alt + Page Up key

To move the cursor one page down press:

Alt + Page Down key

17
Mar

Activate Spotlight Search from Keyboard

To activate spotlight search from Keyboard on your OSX machine just press:

Command + Space

6
Mar

Add a framework in XCode 4.x

Let’s say you want to build a Command Line Tool in XCode 4 and you want to link an existing framework with your app.

In order to do that go to your project then select your target, then choose Build Phases, then add the framework at section Link Binary With Libraries.

28
Jun

Set Firefox as Default Browser on OSX (tip)

To set Firefox as the default browser on OSX Lion, Leopard or Snow Leopard launch Firefox then
go to Preferences -> Advanced -> General (tab) and press Check Now button, then choose Yes.
Read more »

28
Jun

How to Compare Two Source Code Projects (tip)

If you have multiple copies of a project with source-code files and you don’t know
howto quickly compare in order to find out which of them is newer, or what changes you’ve
made to the source code.


file merge osx

File Merge OSX

You will find this small app in: /Developer/Applications/Utilities

28
Jun

Delete Locked files in OSX (tip)

If you are not able to empty trash for example because the file you’ve just moved there is
locked and you get the error: “Cannot delete because file is in use.
the just right click to empty trash and at the same time hold Option key.

You will notice when right clicking that “empty trash” is now “secure empty trash”.


28
Jun

Capture the Screen in OSX (take a snapshot tip)

If you want to take a snapshot of your screen on OSX Lion, Snow Leopard or Leopard press:
Shift + Command + 3 Keys simultaneously. The screenshot will be saved as a .PNG file on the desktop.

To find more shortcuts look into: System Preferences -> Keyboard -> Keyboard Shortcuts (tab).
Read more »

28
Jun

Using an iPhone Developer License on Multiple Macs

Sometimes when developing iPhone or iPad applications you need to use multiple computers but you only have one license.
That license generated after signing a certificate request using a private key on first computer you used.
If you try to download the certificate from Apple’s iOS Provisioning portal on second computer you will
notice the certificate is not working for second computer. That’s because it was generated using first
computer private key.
Read more »

28
Jun

See a picture in OSX’s Preview in Actual size (tip)

You can display a picture in OSX’s Preview in actual size of that image using:

Command + ‘0 ‘ (zero key)

If you want to zoom on that image use:
Command + ‘+’ to zoom in
Command + ‘-‘ to zoom out

There’s also ‘zoom to fit’ option, and the shortcut is Command + ‘9’

28
Jun

Empty Trash on OSX Using Keyboard Shortcut Commands (tip)

A quick way to empty trash on OSX is with:

Option (Alt) + Shift + Command + Delete – will empty trash without any confirmation

There’s also:
Shift + Command + Delete – will empty trash with confirmation window

If you want to move selected file(s) to trash use:
Command + Delete

Note that Option key on Mac keyboards is Alt key on a regular (PC) keyboard and Delete key from Mac keyboard is backspace key on a regular keyboard. Also note that when you are in a Firefox browser and you try to delete using those shortcuts it might not work, Firefox use some of them for other purposes.