iOS
Diving into :: Objective-C and Xcode
I am now at D3signerd.com
I am in the process of moving all my content over to a new hosting provider. You will now be able to follow me and my rants over at www.d3signerd.com
Read MoreTurn FIXME, TODO, and !!! comments into compiler warnings within xcode
I have written a few posts on how to customize the jump bar function menu in xcode. If you have not seen them click on the links below.
Read more about FIXME, TODO, !!!
OK, great… Now you can see how customizing the jump bar function menu in xcode can make browsing your code within a single file easier. But, we are missing the ability to find these flags or notes from within the xcode IDE. I wanted to make the FIXME , TODO, ??? and !!! comments a little more useful. So, after some research I found a solution by Jake Marsh ( See references following this tutorial ). What he had done was expand off a code example that takes these comments as your application builds and turns them into compiler warnings. You can then see your comments and descriptions in the compiler warnings list. You can also jump to that comment just like a normal warning can from within xcode. Now, these are useful!
Read MoreCustomizing the Jump bar function menu in xcode with TODO, FIXME, and more
Here I will show you a few examples of how to customize the the jump bar function menu within xcode. These work very similar to the #pragma mark directive. Haven’t use one before? Click the link below to read more about what they are and how to use them.
OK, so what am I talking about? Well, just like the #pragma mark directive, adding a FIXME, TODO, MARK, ??? or !!! comment will add notes to your jump bar function menu within xcode. These notes can then also be used for navigation within your header or implementation files. Lets take a look at the examples below and see the different options available!
Read MoreAdd custom Warning messages to your code in Objective-C
W e have all seen Objective-C warnings while building out an application. But there may be an instance where you need to write your own custom warning messages. To my surprise Xcode will pick up the “#warning” flag in the compiler. This will allow you to add your own custom warnings anywhere within your code.
Read MorePragma Mark to organize your source code
Pagma Marks are simple directives that you can add to your source code to help with organization. They can be added to both xcode header and implementation files. The main benefit will come when you use the jump bar, within xcode, to find functions within your code. Pragma Marks will show up in the function drop-down menu and work as clickable short cuts that jump to sections within your files.
Read MoreMacros for your Objective-C and iOS projects
M acros can be described as snippets of code that you can frequently use over and over again while developing an application. They can also make your code less verbose…. *hint… What we have here is a quick example on how to add macros to your project and then it is followed up by a growing collection of macros for you to pick and choose from.
^Adding Macros to your project
Adding macros to your iOS project only takes a few simple steps.
Lets start by creating a new header file within your project. I have named mine “iOSMacros”. Now, click on the new header file to open it up. It should resemble something like the code below.
Read More

