macosx
-
Get Current Directory in Objective-C
Since Mac OS X is a unix based system, you can always use “getcwd” from the standard C library, but in general if you want to stick within the context of Objective-C/Cocoa, see the examples below. Here’s one snippet you… Continue reading
-
Concatenate string in Objective-C
Unfortunately, this is not as straight forward as it seems it should be. This really comes down to roughly two approaches in my opinion: stringByAppendingString approach: strigWithFormat approach: References StackOverflow, http://stackoverflow.com/questions/510269/how-do-i-concatenate-strings-in-objective-c cocoadevcentral.com, “Learn Objective-C”, http://cocoadevcentral.com/d/learn_objectivec/ Continue reading
-
Mac Sudo Password
Note: “Sudo” is short for “Substitute User Do” or “Superuser Do” This may come as a shock if you’re new to Mac and ever used a *nix system before.. but the sudo password, is your password! If you’re administrator anyway,… Continue reading
-
vi keyboard shortcuts Quick Reference
Never know when those quick reference bookmarks might point to dead links, usually when you need it most! For this reason, I’ve consolidated a quick list from the link below and removed ads and unwanted formatting for a little cleaner… Continue reading