depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • privacy
  • support
  • videos
  • what is depicus

Posts Tagged ‘XCode’

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

Wednesday, February 29th, 2012



Tags: XCode
Posted in Apple, Computers, Software Development, VMWare | Comments Off

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

Saturday, June 18th, 2011



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

View Code OBJC
1
2
3
4
5
6
7
8
9
10
11
#import <Cocoa/Cocoa.h>
 
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);
}

Tags: Objective C, XCode
Posted in Apple, OS X, Software Development | Comments Off

Adding a GIT repository to an existing XCode 4 project

Saturday, May 28th, 2011



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

Tags: GIT, XCode
Posted in Computers, OS X, Software Development | 2 Comments »

Adding a UILabel to a UIToolbar the easy way…

Friday, May 6th, 2011



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

Tags: Hints, XCode
Posted in iOS | Comments Off

Mac App Rejection….

Saturday, January 1st, 2011



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

Tags: App Store, Apple, Code, OSX, Rejected, Wake On Lan, XCode
Posted in Software Development, Wake On Lan | 8 Comments »

<< Previous

  • how i pay the bills

  • depicus in africa

    depicus in africa
  • my charity page

    JustGiving - Sponsor me now!
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    IMG_2582 IMG_3042 IMG_4636 Bisley Developments Ltd
  • videos

    Vimeo

    YouTube
  • twitter

    • No public Twitter messages.
  • recent comments

    • john coull: correction to above, its www.oakley-ukstore.com
    • john coull: they are at it again. adverts on facebook . they are being hosted by enotch.com on ip address...
    • steve: The site are selling £120+ Oakley sun glasses for £13.00 I think its safe to say they may be either...
    • rob: have received a pair of glasses not what ive ordered they are now telling me the ones ive ordered are out of...
    • phil: hi i have purchased some (stupidly),not arrived yet, will they arrive/will they be fake/plz help

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.