Category Archives: Objective C++

Moving views around when the keyboard shows in iOS

When the keyboard shows or hides in iOS, we receive an event to notify us that the keyboard is being shown and being hidden. Ideally we want to get the animation parameters and the size of that keyboard so we … Continue reading

Posted in Objective C++, Things To Remember | Leave a comment

Wrapping text with ellipsis on iOS

This is an extremely common pattern I encounter quite a few times, and worthy of it’s own “things to remember” post. So you want to have some text which wraps, but when it hits the bottom of the window, you … Continue reading

Posted in Objective C++, Things To Remember | Leave a comment

Targeted broadcasting of multithreaded results.

Okay, so here’s a basic problem. You’re building an iOS application (or an Android application) which needs to download an image from a remote site for display in a view. So you write code similar to the following: – (void)setImageUrlTest:(NSString … Continue reading

Posted in Android, iphone, Objective C++ | Leave a comment

OpenGL ES for iOS

I’m working on an application that needs to use OpenGL ES v2.0 on iOS and Android. And one problem I’m running into is getting a good in-depth discussion of OpenGL ES shaders on iOS: one book I have covers shaders … Continue reading

Posted in iphone, Objective C++, Things To Remember | Leave a comment

UDIDs are gone.

After warning from Apple, apps using UDIDs now being rejected UDIDs are now gone. But it’s easy enough if you need a device unique identifier to generate one and track the device that way. Of course because you have your … Continue reading

Posted in iphone, Objective C++ | Leave a comment

Huh.

For testing on Xcode I need to set the current working directory to a known location, so I can put test files there to read during testing. Guess what? Entering “${PROJECT_DIR}” into the Working Directory field: Works like a charm!

Posted in Objective C++, Things To Remember | Leave a comment

Come work for me at Cartifact!

If you are in the Los Angeles area, have a couple of years (or a few decades!) of experience writing software in Java (or heck, if you’re fresh out of school and want to sink your teeth into developing for … Continue reading

Posted in Android, C++, iphone, Java, Objective C++ | Leave a comment

My e-mail bag: The Flowcover transformation matrix

I just downloaded your flow cover library and its a fantastic piece of work especially for a beginner who is trying to learn opengl like me. I have a couple of doubts in that. In this piece of code. GLfloat … Continue reading

Posted in iphone, Objective C++ | Leave a comment

iPhone Multitouch

When handling touch events, the events you get via the touch events in the UIView class is pretty much the raw events from the hardware, wrapped in Objective C objects. If you’re dragging around one finger, then while keeping that … Continue reading

Posted in iphone, Objective C++, Things To Remember | Leave a comment

C++ Things To Remember

Sometimes I have to remind myself of things I used to know but forgot over the intervening years. With C++ it’s two things. First, when playing with a complex algorithm (such as the polygon manipulation algorithms I’ve been playing with, … Continue reading

Posted in C++, Objective C++ | Leave a comment