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…
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…
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…
Here’s an interesting site that offers courses in Cocoa for iOS development. They are quite comprehensive and offer great examples to go with.
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…
Add colors to VI on OS X by adding the following to your ~/.vimrc
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.
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 (…
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 {…
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…
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];