xcode

iPhone SDK: How come the following code only animates first frame?

Hello, I have been trying to animate using an NSTimer and I've set up my code like this: - (IBAction)startClick:(id)sender{ animationTimer = [NSTimer scheduledTimerWithTimeInterval:(.1/25.0) target:self selector:@selector(tick) userInfo:nil repeats:YES]; } - (void)tick{ [self animatePig]; } - (void)animatePig{ UIImage *pig...

Execute an Action when the Enter-Key is pressed in a NSTextField?

Hello, a small problem I have right now. I want to execute a method when the Enter key is pressed in a NSTextField. The user should be able to enter his data and a calculation method should be executed as soon as he hits the enter key. ...

non-XCode IDE for Cocoa?

I think Xcode is a good IDE, but having used Eclipse for Java development in the past I am quite underwhelmed by XCode's code completion and error/warning feedback. (Most of the time, XCode seems to simply try to match the beginning of a text fragment to "words" in the same document, without even using type information to try to determin...

Is there any ready-made calendar control for iPhone apps?

I am building an applicaiton for the iPhone that will display upcoming and past events. I settled for a list view, but then I realized that a calendar (just like the one displayed in the "month" view in the built-in Calendar application) would be a best match (that is, this one). However, the iPhone Human Interface Guidelines just menti...

Application could not be verified error when building app for iPhone device

OK, I've just got myself a shiny new MacBook Pro, and having been developing my iPhone app on another MacBook, I wanted to migrate my development to my new computer. I've got to the stage where I can build the app and run it on the simulator no problem, but when it comes to running the app on my iPhone, I keep getting "The application c...

Reinstalling iPhone code signing certificates after new Leopard install.

Back story: Small-time iPhone developer, even have a (tiny) app on the App Store, so I've navigated the code-signing process before. Performed the appropriate backups of my crypto certs (as outlined in the "Saving your Private Key and Transferring to other Systems" section of iPhone Developer Program Standard Program Portal User Guid...

iPhone SDK 3.0 not detected by XCode 3.2

I have the latest XCode (3.2) running on Snow Leopard, and also have the iPhone 3.0 SDK installed. After XCode was installed, I can't create a new iPhone project with it. There are no iPhone options in the New window, nor is the OS listed anywhere in the Overview dropdown. My only option at this point seems to be downgrading to XCode 3.1...

Xcode can't build on windows share after changing mac?

After moving to a other mac (fresh installed OSX 10.5.7 with iphone sdk 2.2.1) i now have several problems. Often copying files to my mac from the windows vista64 share failes with error -41. When building an .xproject directly on the windows share it fails with hundreds of errors like the following: "error : Cannot allocate memory" I...

Refactoring Really Seems to Have Vanished from my Xcode

I've read the similar (ok, almost identical) thread here as well as on the Apple iPhone Dev forums. I've looked carefullly at the referenced links. I have tried everything but nothing I do has brought refactoring back to life in XCode. Sigh. I took a working, 100% Cocoa Touch project (ie, Pragmatic Programmers - Coding in Objective-C 2....

dead-tree periodicals on Mac development?

upon being asked about subscribing to hardcopy periodicals concerning Macintosh development, I could only think of 'MacTech'. are there any others? (and are they any good?) thanks for your opinions. ...

Document inherited Obj-C methods without Doxygen/compiler warnings?

Background: I'm creating a hierarchy of composite dictionary data structures in Objective-C, and am inheriting from NSMutableDictionary so these classes can be used everywhere an NSDictionary/NSMutableDictionary is called for. (Just so people don't think I'm reinventing the wheel, each one uses a CFMutableDictionaryRef, plus some additi...

XCode Mark

Is it possible to bookmark a line in XCode similar to the "mark" functionality in emacs? Also is there a shortcut used I can use to jump to a line number? My source code is becoming long and hard to navigate. ...

Emacs talking to XCode

I use emacs on my mac to program in Xcode. It works really well for the most part. I double click on a file in xcode, and it pulls it up in an existing emacs window. I compile, and get syntax errors, double click, and they come up in the active emacs window. great. This is all XCode talking to emacs. Does anyone know of a way to get ema...

Debugging RubyCocoa in Xcode

I have an Xcode project of RubyCocoa and need to debug it. Leopard already comes with Ruby installed. I read that there is a need to install a debug-ruby. My question is: RubyCocoa site says that in order to debug Ruby a debuggable version should be built in the ruby source directory. Where should I build it on Leopard? Thanks, Nava ...

What does get-task-allow do in Xcode?

So when I set up my entitlements in my iPhone app project, I create a new Entitlements.plist, and set the value of get-task-allow to false. But why? What does this key represent? EDIT Note this is related to this question - I found that flipping the value of this key to true allowed me to install the app on my device) ...

Xcode: The session is inactive. Please check your setup and try again. 0xE800001E

This happens after I hit Build and Go to run my app on my device. Build -> Clean fixes it, but it's very annoying to have to clean and rebuild the entire project every time I want to run it. P.S. Is there any way to transfer my app to my iPhone using Xcode, but not run it? ...

Need help with Scroll View Crashing

I am trying to display about 53 images in Xcode for iphone, but about the 37th image crashes my entire app! If any one sees any errors in my code, I would really appreciate your help. Thank you!! I think I am not releasing my images somewhere...just not sure what to do! #import "MyProjectViewController.h" @implementation MyProjectView...

Tell AppleScript To Build XCode Project

The following are the steps I would like to have: launch xcode open a specific xcodeproj file build and debug it quit xcode The following is my first attempt to write AppleScript: tell application "Xcode" tell project "iphone_manual_client" debug end tell close project "iphone_manual_client" end tell This only wor...

"collect2: ld returned 1 exit status" Error Iphone SDK. Please help me

Hi everyone, i am new Mac and iphone SDK. i writing basicly a game application. and i want to update and show game score using SQLite. i searched in web for my problem but i didnt find any solution for me. error is: Ld /Users/Iphone/Desktop/IDRGame/build/Debug-iphonesimulator/IDRGame.app/IDRGame normal i386 cd /Users/Iphone/Desktop/ID...

xcode can't find a standard c++ include file

When i mix .m and .cpp i have a problem with xcode not finding the default cpp include (like <map>) update: i'm adding a static lib in my iphone project (which does compile without any problems) and then use the include inside the .m, then the dependencies .h from c++ gets crazy..can't find or can't compile, i tried the .mm but it does...