xcode

Add new templates in Xcode

How to add new templates in Xcode for iPhone application developement? ...

how is it possible to come back to the same page?

Hi friends, I am new at Objective C. I am just trying to build an iphone app. I have created some NIB file, and i have gone to other NIB file by creating an object and using this code: scoreViewController *sviewController = [[scoreViewController alloc] initWithNibName:@"scoreViewController" bundle:nil]; self.scoreView = sviewControl...

How do I package components to use in multiple iPhone app?

I am working on a number of iPhone development projects and I am starting to refactor code and would like to be able to package it in a library or framework that I can reuse in different xcode projects for different iPhone applications. I looked at the New Project dialog in xcode and the only option I have under iPhone OS is to create an...

iPhone simulator fails

I have a fresh iPhone project. When I "Build and Go": Error from Debugger: Failed to launch simulated application: iPhone Simulator failed to install the application. Why is that?! ...

Should I switch from vim to emacs, and if so any suggestions?

First of all, I love vim. I have been using vim for a few years now and it has changed my perceptions of what an editor is capable of. I also love modes. However I am thinking of switching and here is why: I really like Xcode and it has emacs bindings. I use Mac OS X and it has emacs functionality in all text input fields. I hate using...

is it possible to use other controller page as a firstpage at navigation base template in objective c?

hi friend, i am new at the area of objective c. i am trying to build an iphone app by using navigation based template. as usually at the navigation based template show UITableView page at first but i would like to show other controller page at the starting of this app that UIView page. is it possible? ...

STL iterator with custom template

Hi, i have the following template method, template <class T> void Class::setData( vector<T> data ) { vector<T>::iterator it; } and i'm getting the following compilation error ( XCode/gcc ) error: expected `;' before 'it' i found someone else with a similar problem here (read down to see it's the same even though it star...

Linker error when trying to use MPMoviePlayer

On a fresh install of XCode 3.1.2, I'm trying to use the iPhone MoviePlayer as shown in the sample code at http://developer.apple.com/iphone/library/codinghowtos/AudioAndVideo/index.html#INITIATE_VIDEO_PLAYBACK_IN_MY_CODE However, XCode reports the following linker errors when I try to build-n-go: Building target “EOY” of project “EOY...

Writing a string to NSPasteBoard

I cannot get this method to return YES: - (BOOL) writeToPasteBoard:(NSString *)stringToWrite { return [pasteBoard setString:stringToWrite forType:NSStringPboardType]; } I have verified that stringToWrite is coming through properly, the method just always returns NO. Any ideas? Here is the rest of the class: @interface ClipBoard...

iPhone Dev: XCode debugger does not stop on breakpoints

I've got XCode 3.1.2 on OS X 10.5.5. I have an iPhone project that builds fine but the debugger will not hit any of the breakpoints I set. I've tried all the standard fixes that I find on the net: I've turned off 'Load Symbols Lazily' in XCode preferences My active config is Debug Optimization level is 0 in build settings I've cleaned ...

Xcode Documentation Subscribe Buttons

When I go to Help > Documentation in Xcode, I notice the various "Subscribe" buttons in the left sidebar. What exactly happens when I click a subscribe button? ...

Subclassing a NSTextField

First off; I'm a COMPLETE newbie at Cocoa, so please bare with me for asking what I am sure is an inane and utter newbish question. My situation is as follows: I want to expand on the functionality of NSTextField. AMong the things I want to achieve is: Changing the look and feel of the caret. Detecting when the text reaches a certain...

Is there a way to debug (iPhone) while running Leaks?

I'm running a debug build on the iPhone with Leaks. I'd like to break at certain points to see if particular leaks have occurred yet. This would allow me to narrow down where the leak is occurring by process of elimination. However, the debugger is ignored while Leaks is running. Any suggestions? ...

Why does this create a memory leak (iPhone)?

The first line of code creates a memory leak, even if you do [self.editMyObject release] in the class's dealloc method. self.editMyObject is of type MyObject. The second line incurs no memory leak. Is the first line just incorrect or is there a way to free the memory? //creates memory leak self.editMyObject = [[MyObject alloc] init...

What leads to a no suitable image found error on Mac OS X?

I followed Chris Hanson's advice about debugging framework unit tests in Xcode 3.1, but when trying to run the custom executable, the program crashes, stating the below error message [substituted $(BUILD_PRODUCTS_DIR) for the real location of the build products]. 2009-03-02 19:56:03.414 otest[28059:10b] Error loading $(BUILD_PRODU...

Compiling in Xcode fails because linked lib isn't found

Hello, I need the openssl lib for some C code in my iPhone App. So I've put the lib into my project. But when I compile it, Xcode throws me some errors: error: openssl/ssl.h: No such file or directory That's my code for including: #include <openssl/ssl.h> Target settings in Xcode: Which step am I missing to link it correct...

Is there anything similar to "Add Service Reference" in XCode?

My current place of employment is primarily a Microsoft shop and we use Visual Studio pretty extensively. I've grown fond of the laziness of using "Add Service Reference" (formerly "Add Web Reference" in VS2005) to download WSDLs and form classes and methods in nice, convenient namespaces for me. Since we have started to branch out into...

iPhone debugging: variables are not up to date?

I've only recently began using the debugger extensively, so I'm not sure if this is a limitation. When I debug on the iPhone, the variables aren't up to date unless I explicitly view it (ctrl click -> view variable as expression). Is there a way to view actual variables without viewing explicitly? ...

Cocoa QTKit and recording movies

I'm new with the whole QTKit and I was looking for some feedback on the following code that I am attempting to use to display the camera's image and record movies. - (void)initializeMovie { NSLog(@"Hi!"); QTCaptureSession* mainSession = [[QTCaptureSession alloc] init]; QTCaptureDevice* deviceVideo = [QTCaptureDevice defaultInputDevi...

Cocoa without Interface Builder, initialize an instance of app controller?

I don't plan to write applications without IB, I'm just in the process of trying to learn more about programming. How can I get a single instance of my AppController class at startup? (It's normally loaded from the nib.) And can you clear up the use of +initialize and -init? If I understand, +initialize is called on all classes at sta...