changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

  1. Sometimes it the little things that make you smile… :)

    February 29, 2012 by The Man

  2. Writing to OS X ~/Library/Logs from your app

    June 18, 2011 by The Man

    In your main.m file just amend to look like the following.

    int main(int argc, char *argv[]) {
        id pool = [NSAutoreleasePool new];
    	NSString *logPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Logs/Depicus"];
    	freopen([logPath fileSystemRepresentation], "a", stderr);
    	[pool release];
        return NSApplicationMain(argc,  (const char **) argv);

  3. Adding a GIT repository to an existing XCode 4 project

    May 28, 2011 by The Man

    Simple really.

    1. Close XCode 4
    2. Open Terminal and cd to your project folder
    3. Type git init
    4. Then git add .
    5. And finally git commit -m “First commit of XCode project”

    Reopen XCode and fingers crossed you are now all GITed up.

    The original article is here

  4. Adding a UILabel to a UIToolbar the easy way…

    May 6, 2011 by The Man

    I simply quote…

    “For those using Interface Builder to layout your toolbar, it is also possible to do this using Interface Builder alone.

    To add a label to a toolbar you need to add a generic UIView object to your Toolbar in IB by dragging a new UIView object over your UIToolbar. IB will automatically create a UIBarButtonItem that will be initialized with your custom UIView. Next add a UILabel to the UIView and edit the label graphically to match your preferred style. You can then visually set up your fixed and/or variable spacers as desired to position your label appropriately.

    You must also set the background of both the UILabel and the UIView to clearColor to get the toolbar to show through correctly under the label.”

    Genius and simple. Thanks to Matt R and Stackoverflow

  5. Mac App Rejection….

    January 1, 2011 by The Man

    Bummer just been rejected for “2.30 Apps that do not comply with the Mac OS X File System documentation will be rejected”

    “The application is creating files or writing to ~/Library/Application Support/Depicus/…. Appropriate app-identifiers are ‘WakeOnLan’, ‘com.depicus.osx.wakeonlan’ and your name”

    Well have filed an appeal so lets see how we get on but looks like I won’t make it into the App Store for launch.

    UPDATE WE WON – Wake on Lan will be in the Mac App Store wheeeeeeeheeee

  6. Wake On Lan hits controversy and 1.4

    December 1, 2010 by The Man

    Some people are not happy with me using analytics to see how you use the app and on what devices. Nothing nefarious it was just Google analytics for the iPhone which told me what buttons you pressed most.

    BUT if your not happy then I’m not happy. So I have removed all of it.

    I have also fixed a bug that would crash the app on 3.1.3 and lower devices. As ever should be live in about a week.