Xcode 5 crashes when running an app with SDL 2

It looks like the problem is that SDL2 isn’t properly signed. There’s a ticket to fix the issue at https://bugzilla.libsdl.org/show_bug.cgi?id=2058. When you spawn an application from Xcode 5 with lldb, Xcode loads a plugin that will inspect modules your application loads, presumably to give you insight into your program. Xcode is set up to crash … Read more

Unlock xcode files?

Remember the Project isn’t just a standalone “.xcodeproj” file but it’s actually a folder that contains a number of hidden items. So when applying permissions, make certain to apply permissions to every item in your project folder. You can do this via the “Apply Permissions to Enclosed Items” popdown menu (available in the “Get Info” … Read more

how to know when text is pasted into UITextView

Here is what i use to detect paste events in UITextView: // Set this class to be the delegate of the UITextView. Now when a user will paste a text in that textview, this delegate will be called. -(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { // Here we check if the replacement text is equal to … Read more