Difference between revisions of "User:John Dang"
m |
m |
||
Line 1: | Line 1: | ||
<table cellspacing="5" style="line-height: 1.5em; width: 22em; font-size: 95%; text-align: left; background-color: #F9F9F9; border: 1px solid #AAAAAA; color: black; float: right; margin: 0.5em 0 0.5em 1em; padding: 0.2em;"> | <table cellspacing="5" style="line-height: 1.5em; width: 22em; font-size: 95%; text-align: left; background-color: #F9F9F9; border: 1px solid #AAAAAA; color: black; float: right; margin: 0.5em 0 0.5em 1em; padding: 0.2em;"> | ||
<tr><td style="font-weight: bold; text-align: center; font-size: 125%;" colspan="2"><b>John Dang</b></td></tr> | <tr><td style="font-weight: bold; text-align: center; font-size: 125%;" colspan="2"><b>John Dang</b></td></tr> | ||
− | <tr><td style="padding: 4pt; line-height: 1.25em; text-align: center; font-size: 8pt;" colspan="2" | + | <tr><td style="padding: 4pt; line-height: 1.25em; text-align: center; font-size: 8pt;" colspan="2"></div></td></tr> |
<tr> | <tr> | ||
<th style="padding: 0.2em 1em 0.2em 0.2em; background: transparent none repeat scroll 0% 0%; line-height: 1.2em; text-align: left; font-size: 90%;vertical-align: top;">Born</th> | <th style="padding: 0.2em 1em 0.2em 0.2em; background: transparent none repeat scroll 0% 0%; line-height: 1.2em; text-align: left; font-size: 90%;vertical-align: top;">Born</th> |
Revision as of 09:28, 12 May 2009
John Dang | |
</div> |
Action | Mac OSX |
---|---|
Exit Dialog | ctrl + eject |
Quit All Applications and Restart | ⌘ + ctrl + eject |
Sleep | ⌘ + opt + eject |
Force Quit | opt + ⌘ + esc |
Log Out | ⇧ + ⌘ + Q |
Log Out Immediately | opt + ⇧ + ⌘ + Q |
Move to Trash | ⌘ + Del |
Empty Trash | ⇧ + ⌘ + Del |
Empty Trash with No Dialog | opt + ⇧ + ⌘ + del |
Eject | ⌘ + E |
Right-Click | ctrl + Click |
Spotlight | ⌘ + spacebar |
Find | ⌘ + F |
Hide Find | ⌘ + H |
Hide Others | opt + ⌘ + H |
Hide All Windows Except Current Window | opt + ⌘ + H |
Minimize Window | ⌘ + M |
Minimize All Windows | opt + ⌘ + M |
Close Window | ⌘ + W |
Close All Window | opt + ⌘ + W |
New | ⌘ + N |
Open | ⌘ + O |
Save | ⌘ + S |
Save As | ⇧ + ⌘ + S |
⌘ + P | |
Get Info | ⌘ + I |
Add to Favorite/Sidebar | ⌘ + T |
Undo | ⌘ + Z |
Redo | ⇧ + ⌘ + Z |
Cut | ⌘ + X |
Copy | ⌘ + C |
Paste | ⌘ + V |
Select All | ⌘ + A |
View as Icons | ⌘ + 1 |
Hide Toolbar | ⌘ + B |
Show View Options | ⌘ + J |
Back | ⌘ + [ |
Forward | ⌘ + ] |
Go to My Computer | ⇧ + ⌘ + C |
Go to iDisk | ⇧ + ⌘ + I |
Go to Applications | ⇧ + ⌘ + A |
Go to Favorites | ⇧ + ⌘ + F |
Go to Folder | ⇧ + ⌘ + G |
Connect to Server | ⌘ + K |
Turn on Zoom | opt + ⌘ + 8 |
Zoom In | opt + ⌘ + '+' |
Zoom Out | opt + ⌘ + '-' |
Negative View | ctrl + opt + ⌘ + 8 |
FKA - Turn on Full Keyboard Access | ctrl + F1 |
FKA - Highlight Menu | ctrl + F2 |
FKA - Highlight Dock | ctrl + F3 |
FKA - Highlight Window/Next Window | ctrl + F4 |
FKA - Highlight Toolbar | ctrl + F5 |
FKA - Highlight Utility Window | ctrl + F6 |
Show/Hide Dock | opt + ⌘ + D |
Switch Application | ⌘ + tab |
Turn VoiceOver on/off | ⌘ + F5 |
VoiceOver Menu | ctrl + opt + F7 |
VoiceOver Option UtilityProxy-Connection: keep-alive
Cache-Control: max-age=0 |
ctrl + opt + F8 |
Take Picture of Screen | ⇧ + ⌘ + 3 |
Take Picture of Selection | ⇧ + ⌘ + 4 |
Take Picture of Screen to Clipboard | ⇧ + ⌘ + 4, ctrl + select |
Take Picture of Selected Window | ⇧ + ⌘ + 4, spacebar |
Objective-C
- Further information: Objective-C
String Format
Symbol | Display |
---|---|
%@ | id |
%% | a % character |
%c | unsigned char as ASCII |
%C | unichar as Unicode |
%d, %D, %i | long |
%e, %E, %f, %g, %G | double |
%hi | short |
%hu | unsigned short |
%o, %O | unsigned long printed as octal |
%p | void * |
%qi | long long |
%qu | unsigned long long |
%s | char * |
%S | unichar * |
%u, %U | unsigned long |
%x, %X | unsigned long printed as hexadecimal |
String Conversion between NSString and C strings
NSString *nsstr; const char *cstr = "Open Source!"; // Convert a C string to a NSString nsstr = [NSString stringWithUTF8String:cstr]; // Convert a NSString to a C string cstr = [nsstr UTF8String];
Automatically Called Methods
Essential Objects and Their Commonly Used Methods
NSObject
- - (id)init
NSObject *newNSObject = [[NSObject alloc] init];
NSLog(@"Open Source Account Number: %d is %@", i, accountToPrint);
is equivalent to
NSLog(@"Open Source Account Number: %d is %@", i, [accountToPrint description]);
// compares the logic written in the isEqual methods if ([this isEqual:that]) { ... }
may not be equivalent to
// compares the values of the two pointers
this == that;
NSArray
- - (NSUInteger)count
NSArray *nsarray = [NSArray initWithObjects:@"Open Source!", nil]; NSUInteger *count; count = [nsarray count];
NSArray *nsarray = [NSArray initWithObjects:@"Open Source!", nil]; NSObject *nsobject = [nsarray objectAtIndex:0];
NSArray *nsarray = [NSArray initWithObjects:@"Open Source!", nil]; NSObject *nsobject = [nsarray lastObject];
if ([this containsObject:that]) { ... }
NSArray *nsarray = [NSArray initWithObjects:@"Open Source!", nil]; NSUInteger *index; index = [nsarray indexOfObject:@"Open Source!"];
NSMutableArray
- - (void)addObject:(id)that
NSMutableArray *nsmarray = [NSMutableArray initWithObjects:@"Open Source!", nil]; [nsmarray addObject:@"Open Mind!"];
NSMutableArray *nmsarray = [NSMutableArray initWithObjects:@"Open Source!", nil]; NSArray *nsarray = [NSArray initWithObjects:@"Open Mind!", nil]; [nsmarray addObjectFromArray:nsarray];
NSMutableArray *nsmarray = [NSMutableArray initWithObjects:@"Open Source!", nil]; [nsmarray insertObject:@"Open Mind!" atIndex:1];
NSMutableArray *nsmarray = [NSMutableArray initWithObjects:@"Open Source!", nil]; [nsmarray addObject:@"Open Mind!"]; [nsmarray removeAllObjects];
NSMutableArray *nsmarray = [NSMutableArray initWithObjects:@"Open Source!", nil]; [nsmarray addObject:@"Open Mind!"]; [nsamrray removeObject:@"Open Source!"];
NSMutableArray *nsmarray = [NSMutableArray initWithObjects:@"Open Source!", nil]; [nsmarray addObject:@"Open Mind!"]; [nsmarray removeObjectAtIndex:0];
NSString
- - (id)initWithFormat:(NSString *)format, ...
NSString *nsstring = [NSString initWithFormat:@"Open %@!", @"Source"];
NSString *nsstring = @"Open Source!"; NSUInteger *length; length = [nsstring length];
NSString *nsstring1 = @"Open"; NSString *nsstring2 = @" Source!"; NSString *nsnewstring; nsnewstring = [nsstring1 stringByAppendingString:nsstring2];
Apple Xcode v3.1.2
Keyboard Shortcuts
Action | Mac OSX |
---|---|
Build and Go (Run) | ⌘ + return |
Display Console Window | ⇧ + ⌘ + R |
Clear Console Messages | ctrl + opt + ⌘ + R |
Display Documentation Help | opt + double-click + method |
Display Preferences Window | ⌘ + , |
Switching Between .h and .m Files | opt + ⌘ + up |
Apple Interface Builder v3.1.2
Keyboard Shortcuts
Action | Mac OSX |
---|---|
Display Inspector Window | ⇧ + ⌘ + I |
Display Preferences Window | ⌘ + , |
References
External links
Eclipse WTP
Installing Mac OS X on a Windows PC
- http://pcwizcomputer.com/index.php?Itemid=48&id=76&option=com_content&task=view
- http://www.windowsdevcenter.com/pub/a/windows/2005/01/18/PearPC.html
- http://wiki.osx86project.org/wiki/index.php/Vmware_how_to - [Tested (2009/01/18): Works]
- http://www.insanelymac.com/forum/index.php?showtopic=109102 - My "OS Test" Disk Identifier: "disk0s3" [-v rd=disk0s3]