Blog Archives

Autobuild numbers in Xcode4

In Xcode 4 look in the Navigator pane, which is the pane on the left side of the Xcode screen. It has 7 icons across the top. Select the left-most icon (looks like a file folder) to get the Project

Tagged with: , , ,
Posted in Uncategorized

Submitting Apps to Apple with a space in the name

Now Apple introduced a neat feature to archive your Apps before submitting. Neatly because it stores the symbol table, so it an App crashes you can download the logs from the Apple website and get a pointer right to the

Tagged with: , , ,
Posted in Apple, Luky Soft

Becoming an Cocoa guru

Here’s an interesting site that offers courses in Cocoa for iOS development. They are quite comprehensive and offer great examples to go with.

Tagged with: ,
Posted in Code

iPad not firing orientation changes when primary views hidden

Okay, this one was driving me crazy. I have an app that has a UISplitView, and in the left view there is an navigation hierarchy, so at some point controllers will pushed up the view stack. Well, at that point

Tagged with: , ,
Posted in Apple, Code

Color code VI on OS X

Add colors to VI on OS X by adding the following to your ~/.vimrc

Tagged with: , , ,
Posted in Apple, Code

NSSemaphore … missing?

I was experimenting with a new multi layered algorithm to draw many layers of a screen at once. Obviously you would need some for of synchronization mechanism, and thus i found myself looking for a traditional Edgar Dijkstra Semaphore.

Tagged with: , , ,
Posted in Code

Taming Snow Leopard: CGDisplaySwitchToMode deprecation

Last one.. (i hope) here’s a snippet that will flick the screen in a best match resolution using only 10.6 API. – (void) setDisplay:(CGDirectDisplayID) dspy toMode: (struct screenMode) screenMode { CGDisplayModeRef mode; CGDisplayErr err; CGDisplayModeRef originalMode = CGDisplayCopyDisplayMode(kCGDirectMainDisplay); if (

Tagged with: ,
Posted in Code

Taming Snow Leopard: CGDisplayBestModeForParameters deprecation

We used to have a cool function that would give us the best match for a given resolution, it’s deprecated so let’s work around it. Again Apple failed to provide a documented example so here is one: struct screenMode {

Tagged with: ,
Posted in Code

Taming Snow Leopard: CGDisplayBitsPerPixel deprecation

This one is tricky, since Apple does not provide you with an alternative API. There is one hidden in the header files however, replace: .. bitsPerPixel = CGDisplayBitsPerPixel(CGMainDisplayID()); .. with: — (size_t) displayBitsPerPixel:(CGDirectDisplayID) displayId { CGDisplayModeRef mode = CGDisplayCopyDisplayMode(displayId); size_t

Tagged with: ,
Posted in Apple, Code

Taming Snow Leopard: stringWithCString: length depreciation

I know this one has been depreciated in 10.5 to but i never found a nice replacement until now: message = [NSString stringWithCString:(buffer + 4) length:(arg2 -5)]; becomes: message = [[[NSString alloc] initWithBytes:(buffer + 4) length:(arg2 -5) encoding:NSASCIIStringEncoding] autorelease];

Tagged with: , ,
Posted in Code