OSX Deskref

Random irrelevance that just didn't fit into other forums. Talk about anything.

Moderator: Talkative People

Post Reply
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

OSX Deskref

Post by avansc »

My OSX Desk Reference

⌘ is called the command key, or apple key as some call it. It's better knows as the meta key on all systems, but for this reference i will use that symbol(gorgon loop), or I'll simple say cmd/command.

⌥ is called the option key, I'm not aware what it correlates to on other systems, its also doubled as the alt key. i'll refer to it by opt, or by the symbol.

Finder:

side note: Most OSX applications have a preference pane, and you can access it by clicking on the name of the application on the process bar(top of screen), or alternatively, you can press cmd+,

In OSX, Finder is the equivalent of what Explorer is in Windows. They share some of the same features, but the feel and experience between the two is vastly different.

cmd+N : Opens a new finder window at the default open location. The default location is usually the current users "Home" directory. You can change this in the general tab in the finder preference pane.

shift+cmd+N : Creates a new folder in current working directory

shift+cmd+C : Go to Computer
shift+cmd+H : Go to Home
shift+cmd+D : Go to Desktop
shift+cmd+K : Go to Network
shift+cmd+A : Go to Applications
shift+cmd+O : Go to Documents
shift+cmd+U : Go to Utilities

cmd+X : Cut selected items
cmd+C : Copy selected items
cmd+V : Paste selected items
cmd+A : Select all items in current directory

cmd+Z : undo
shift+cmd+Z : redo

cmd+1 : View as Icons
cmd+2 : View as List (same as details)
cmd+3 : View as Columns
cmd+4 : View as Cover Album

cmd+[ : Back
cmd+] : Forward
cmd+"up arrow" go to enclosing folder

// Enough for now, I'll add some more when i have some time. Probably do some xcode stuff next.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
Arce
Jealous Self-Righteous Prick
Jealous Self-Righteous Prick
Posts: 2153
Joined: Mon Jul 10, 2006 9:29 pm

Re: OSX Deskref

Post by Arce »

-printed-

Sweetshit. Thx.
<qpHalcy0n> decided to paint the office, now i'm high and my hands hurt
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: OSX Deskref

Post by LeonBlade »

Wait... what is this for?
There's no place like ~/
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: OSX Deskref

Post by eatcomics »

Its a deskreference, its so you don't have to look stuff up :D, I don't have a mac, but if I did, I bet I'd use this :D
Image
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: OSX Deskref

Post by LeonBlade »

eatcomics wrote:Its a deskreference, its so you don't have to look stuff up :D, I don't have a mac, but if I did, I bet I'd use this :D
I have a Mac, I was just wondering why he posted it. :lol:
There's no place like ~/
User avatar
Innerscope
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon May 04, 2009 5:15 pm
Current Project: Gridbug
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: Obj-C, C++
Location: Emeryville, CA
Contact:

Re: OSX Deskref

Post by Innerscope »

avansc wrote:cmd+"up arrow" go to enclosing folder
Let's not forget:
cmd+"down arrow" or cmd+O opens the currently selected file or directory.
cmd+i gets info (cmd+opt+i global info)
cmd+space opens spotlight (cmd+space+"type foo"+enter = useful, or just use quicksilver)
cmd+delete moves to trash
cmd+shift+delete empties trash
cmd+opt+shift+delete sudo empty trash lol
cmd+w closes current window
cmd+tab cycles through open applications
cmd+opt+h hides open applications excluding [edit] current application
cmd+h hides [edit] current application
cmd+opt+d hides/shows dock

cmd+d or opt+drag duplicate
cmd+l or cmd+opt+drag alias

cmd+click selects/deselects multiple items
shift+click selects/deselects multiple items (ordered)
opt+click hides open applications excluding selected
space or cmd+y opens quick preview

opt+"About This Mac..." system profiler

cmd+opt+esc force quit

hmmm all I can think of at the moment..

Oh boy uncle Avansc! When do we get to learn how to use terminal commands like a real UNIX user?!?!? :lol: ...now I'm just being a jerk.
Last edited by Innerscope on Sun Apr 11, 2010 3:57 pm, edited 1 time in total.
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: OSX Deskref

Post by LeonBlade »

By pressing ⌥ with or without ⇧ and a letter/symbol/number you can produce additional keys like these:
⇧⌥K 
⌥J ∆
⌥1 ¡

⇧⌘3 Takes a full screen screen shot to your desktop.
⌃⇧⌘3 Takes a full screen screen shot to your clipboard.
⇧⌘4 Brings up a cursor to define a selection by clicking and dragging for a screen shot and saving to desktop.
⌃⇧⌘4 Brings up a cursor to define a selection by clicking and dragging for a screen shot and saving to clipboard.

⌘, Brings up preferences for the current application.
⇧⌘⌫ Deletes trash from your trash bin (when using Finder)
⌘⎋ Brings up Front Row
⌘Space Brings up Spotlight search field (top right corner)
⌥⌘Space Brings up Spotlight window (opens in Finder)
⌥⌘D Toggle's dock's visibility (hides it and un-hides it)
⇧⌘/ Show's applications help menu (like F1 on Windows)
There's no place like ~/
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: OSX Deskref

Post by avansc »

lest not forget there is no delete button on a macbook…..

cmd+back_space is the same as cmd+delete

if you just want the delete button, which many programmers cant live without.
you do fn+back_space.

Innerscope, you are wrong about cmd+h and opt+cmd+h

cmd+h hide the current application, what ever it is
opt+cmd+h hides all applications except the active one, including finder.

some xcode keys you might wanna know about

cmd+k : compiles the current file
cmd+b : build
cmd+enter : build and run
opt+cmd+enter : run
cmd+shift+r : show console

debuggin
shift+cmd+i : step into
shift+cmd+o : step over
shift+cmd+t : step out
opt+cmd+p : continue

there are many other, but those are they ones i use.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
Innerscope
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon May 04, 2009 5:15 pm
Current Project: Gridbug
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: Obj-C, C++
Location: Emeryville, CA
Contact:

Re: OSX Deskref

Post by Innerscope »

avansc wrote:lest not forget there is no delete button on a macbook…..

cmd+back_space is the same as cmd+delete

if you just want the delete button, which many programmers cant live without.
you do fn+back_space.

Innerscope, you are wrong about cmd+h and opt+cmd+h

cmd+h hide the current application, what ever it is
opt+cmd+h hides all applications except the active one, including finder.

some xcode keys you might wanna know about

cmd+k : compiles the current file
cmd+b : build
cmd+enter : build and run
opt+cmd+enter : run
cmd+shift+r : show console

debuggin
shift+cmd+i : step into
shift+cmd+o : step over
shift+cmd+t : step out
opt+cmd+p : continue

there are many other, but those are they ones i use.
You'll have to excuse me on the backspace, the last 5 generations of Macs I've owned represent backspace as delete on their keyboards.
You're right about cmd+h and cmd+opt+h, I was talking about those commands in reference to the finder. How non-sensical of me.

For xCode, I'll add using
cmd+] and cmd+[ for indentation
cmd+opt+b look at breakpoints
tab auto-complete
cmd+ctrl+arrow left or right folds/unfolds current function
cmd+ctrl+arrow up or down folds/unfolds all functions
Other than that and what you put up, I can't think of anything else that I use often.
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: OSX Deskref

Post by avansc »

pressing escape anytime in xcode(while editing code) will show a dropdown with all the "in scope" stuffies.

if you do something like classtype-> or . and then press escape it will show you all the members of that particular object.

i use that one alot.

edit: as for the delete backspace key deal. all the mobiles just have backsapce/delete on one key, depending on what keyboard you get for you desktop (or mobile i guess) you will get the single key version,(small KB) or 2 keys on the bigger one with a full numpad.
Last edited by avansc on Sun Apr 11, 2010 5:09 pm, edited 1 time in total.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
Innerscope
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon May 04, 2009 5:15 pm
Current Project: Gridbug
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: Obj-C, C++
Location: Emeryville, CA
Contact:

Re: OSX Deskref

Post by Innerscope »

avansc wrote:pressing escape anytime in xcode(while editing code) will show a dropdown with all the "in scope" stuffies.

if you do something like classtype-> or . and then press escape it will show you all the members of that particular object.

i use that one alot.
this self
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: OSX Deskref

Post by LeonBlade »

Speaking of Xcode, does anyone know why namespace code completion doesn't work with C++?
I've been using SFML in Xcode, and for some reason, I can't get the code syntax working when I type in (for example)

Code: Select all

sf::
None of those pop up, however, if I choose to...

Code: Select all

using namespace sf;
I can get code hinting(sort of) I just want to get code completion to work with my namespaces!!! :(
There's no place like ~/
User avatar
Innerscope
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon May 04, 2009 5:15 pm
Current Project: Gridbug
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: Obj-C, C++
Location: Emeryville, CA
Contact:

Re: OSX Deskref

Post by Innerscope »

LeonBlade wrote:Speaking of Xcode, does anyone know why namespace code completion doesn't work with C++?
I've been using SFML in Xcode, and for some reason, I can't get the code syntax working when I type in (for example)

Code: Select all

sf::
None of those pop up, however, if I choose to...

Code: Select all

using namespace sf;
I can get code hinting(sort of) I just want to get code completion to work with my namespaces!!! :(
really? even after you compile your code? (note: I can't remember the last time I used namespaces)
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: OSX Deskref

Post by LeonBlade »

Innerscope wrote:
LeonBlade wrote:Speaking of Xcode, does anyone know why namespace code completion doesn't work with C++?
I've been using SFML in Xcode, and for some reason, I can't get the code syntax working when I type in (for example)

Code: Select all

sf::
None of those pop up, however, if I choose to...

Code: Select all

using namespace sf;
I can get code hinting(sort of) I just want to get code completion to work with my namespaces!!! :(
really? even after you compile your code? (note: I can't remember the last time I used namespaces)
Yeah :( it's very upsetting.
There's no place like ~/
Post Reply