xcode

Delegate and controller

HI folks please Let me know Exact Difference between the Delegate.h and delegate.m and Viewcontroller.h and viewcontroller.m files and its usage Thanks & regards ...

Error Handling in Xcode, iPhone SDK

In Visual Basic, there's a line of code you can use to handle errors in code "On Error Resume Next" Is there something similar in Objective-C? My problem is I have an "Add New Cell" add button that creates a new cell during runtime. However, the cells are re-orderable. When you try to re-order the "Add New Cell" cell, I get an index o...

How to have Xcode always copy files (even if they have not been detected as modified) when building?

I am developing an application which uses .js files stored in the Resources/javascript folder of my application bundle. In my Xcode 2.5 project I have created a folder reference (not a group) to my javascript folder, which automatically added the folder to the Copy Bundle Resources build phase. The problem I have is when I modify my .js...

Linker Error: iPhone Unit Test Bundle referencing App classes

Starting with an app already in development, I have carried out the instructions in the iPhone Development Guide – Unit Testing Applications I can successfully include and use my App's classes in Application-style tests that run on the device, and output their results to the console. If I add the following line of code: STAssertTrue([...

iPhone appstore account name programmatically

Is there a way in the iphone sdk to retrieve the name of the account which bought the application programmatically? With account name I mean the name you use to login into iTunes. Edit To make it more clear, I mean the account name you can find under your iPhone settings under 'Store'. Edit Might it be accessible trough NSUserDefault...

Attach XCode Debugger

Hi there, I'm developing an iPhone app that needs a web login. As usual I call [[UIApplication sharedApplication] openURL:loginURL]; This close the app and calls the login page inside Safari. Once logged, the app is opened once again using a callback address and the iPhone URL registration feature. The question here is: Since the ap...

Application not starting, manually

I am developing an iPhone application which works perfectly when doing a build & run, it runs like a charm. But after I exited the app which ran from the build & run, an I try to start it manually by pressing the app icon on the phone it won't run. The app shows the Default.png but after that it does nothing and just quits the app. A...

How to compile for Mac OS X 10.5

Hi everyone, I'd like to compile my application for version 10.5 and forward. Ever since I upgraded to Snow Leopard and installed the latest XCode, gcc defaults to 10.6. I've tried -isysroot /Developer/SDKs/MacOSX10.5.sdk but that doesn't seem to work. Is there a GCC flag that allows me to set the SDK? (Incidentally, I changed the gcc ...

xcode compiler see a class as abstract but it's not!

Hi, I'm working on a C++ command tool project that depends on a third party architecture called ACE (adaptive communication environment). I'm new to Xcode and this is what I've done to have my command tool project "sees" the ACE library. compile the ACE library so that I have a bunch of dynamic libraries: xxx.dylib add the libraries a...

LLVM Clang 2.6 and Xcode 3.2!

So, I've just downloaded the LLVM Clang (2.6) binaries. Mac OS X 10.6 comes with Clang 1.0.Do you know how to integrate a later version of Clang with the Xcode 3.2.x IDE? Just overwriting files seems a little bit risky. ...

What are your most useful Xcode templates?

Xcode comes with a few templates (file templates, project template, etc.). If you don't know what I'm talking about, take a look. After searching on Google for some time I couldn't find any other useful templates. So here it is: What are your most useful Xcode templates? I'll start with a pretty boring Objcetive-C category file temple....

technical way of managing files - grouping files in xcode

I am in iPhone development since last 3 months. Usually, While inserting a view Controller, I just right click on Classes & add new group. & Within that group I just add my new view controller's .h, .m & .xib file. Before my question, let's see what I have done in my project. My questions are something like this Is it in proper w...

UINavigationBar vs UIToolbar vs UITabBar in iPhone

Let me know which one should be used in what case. What are differences among them? What are the advantage and disadvantage of each component? Thanks ...

Xcode "warning: Could not find object file ... no debug information available for ..."

Messing about with various settings for unit-testing plug-ins left me with a discombobulated project file. I seem to have fixed it, but there is one side effect: everytime I run the plug-in, the console fills with warnings for each and every class file, like so: warning: Could not find object file "/Users/elisevanlooij/Documents/Proj...

FileMaker Plugin Issue

I am compiling a plugin for FileMaker using Xcode. I get no errors or warnings, and my 'target' is my FM/Extensions folder. Everything works well on my computer. It installs and then when I open FileMaker/Preferences/Plugin it is listed like it should be. Problem: I copied the project to another computer and I get the same results exce...

IOServiceAddMatchingNotification issue

Hello, void functions::start() { io_iterator_t enumerator; ...some code... result = IOServiceAddMatchingNotification( mNotifyPort, kIOMatchedNotification, IOServiceMatching( "IOFireWireLocalNode" ), serv...

xcode 3.2.1 file history via keyboard shortcut

Prior to xcode 3.2.1, you could cycle through the list of files your in history through a keyboard shortcut (Cmd + Option + L/R Arrow key). Now this set of keys will give you the history within the file (ie all of the actions you've performed in this file). Is there a way to navigate with keyboard only between files you have open in yo...

Accented/umlauted characters in C?

I'm just learning about C and got an assignment where we have to translate plain text into morse code and back. (I am mostly familiar with Java so bear with me on the terms I use). To do this, I have an array with the strings for all letters. char *letters[] = { ".- ", "-... ", "-.-. ", "-.. ", ".", "..-." etc I wrote a function for ...

Xcode crashes when I try to Add New Version of Core Data model

I have the latest version of Xcode and when I select my .xcdatamodel file and then select "Data Model" => "Add Model Version", I get the following dialog: Internal Error File: ... Line: ... Object: ... Method: ... Couldn't create new version 'MyApp1 2.xcdatamodel' in version group 'MyApp1.xcdatamodeld' ===================== It wiped...

"Unknown class <MyClass> in Interface Builder file" error at runtime

Even though Interface Builder is aware of a MyClass, I get an error when starting the application. This happens when MyClass is part of a library, and does not happen if I compile the class directly in the application target. ...