xcode

How can I load this XML data into Xcode ?

Ok, so I've finally decided on how to load my data I'm going to go with loading my book data as an XML file. The problem is that I'm not too sure on where to start, I've heard terms such 'parsing' but dont know how exactly it fits in. I have added the code below if someone could give me a start in the right direction I would really app...

xcodeproj files

The below files have nothing to do with the project settings, right? It is just properties for the Xcode IDE. *.mode1v3 *.pbxuser ...

Syntax aware selection in XCode?

Since moving to XCode I am desperately missing a text macro I have used in many other editors which I use all the time. Basically what it does is that everytime you invoke it, it selects text in an expanding scope. Here is IntelliJ's definition of the functionality: Syntax aware selection Ctrl+W (select word) in the editor selects ...

Memory Leak in Application Main()

The following code is producing a memory leak on the in retVal line: NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; Any ideas on how to fix? ...

How to enable Neon instruction in Xcode

Hi I want to use Neon SIMD instruction for the iphone. I heard we have to put flags "-mfloat-abi=softfp -mfpu=neon" in the "Other C Flags" field of the Target inspector, but when building I get "error: unrecognized command line option "-mfpu=neon"" . Is there anything else special that has to be done to allow this flag? (I have Xcode...

xcode linking error

EDIT: This problem has been solved. See below. Hey all. I'm building an iPhone application against my own library. To do this, I have the library project referenced from within the application. I have the header path properly set up, as compilation doesn't cause any issues. However, I'm having trouble during the linking phase and I get ...

Class Constants

I have several obj-c classes, each of which require a number of contants that are used in switch statements. I had tried defining these numerical constants in the .m file using the #define preprocessor instruction. All these constants begin with 'kCell'. This seems to work well but Xcode's code sense is presenting me with every 'kCell' ...

iphone simulator picks up deleted resources from xcode

I'm getting confused. I add resources (mp4 videos) to the resources folder in xcode and run the simulator and it picks them up, great! I delete the file and simulator still picks it up from the resources directory. I delete the file in the app bundle that xcode is using and it still detects this file. I'm at a loss as to where/how I sho...

Is it possible to read the 'current project version' in the settings of an iPhone app

In my app I am using the agvtool to update the build number. I would now like to have the version of my app that appears in the settings to display this number and have it update automatically. I have seen a few apps work around this by writing a script to ready the value and populate the value then in the root.plist. I was wondering i...

Looking for a formal specification for .pbxproj files

I need to read / write Xcode project definition files (myproject.xcodeproj/project.pbxproj) - is there any formal specification of the file format which I can use to create a parser? ...

Changing the default header comment license in Xcode

Whenever I create a new .cpp/.h file in Xcode a comment is added to the top of the file. For example: /* * <file>.cpp * <Name of project> * * Created by <My name> on <Date>. * Copyright <Year and company>. All rights reserved. * */ I want to change the default comment to be another license, like GPL/LGPL/ or something else....

problem by redirected url

opening http://ystatuschecker.com/n/iwall.php?tedad=1 by browser in safari in mac will redirect to http://ystatuschecker.com/n/iwall.php?tedad=5000 i don't know why in my code it's never redirect . http://yahoo.ir will redirect to http://world.yahoo.com what's wrong with my URL? NSURL *originalUrl=[NSURL URLWithString:@"http://y...

recover deleted resource folder

I accidentally deleted the resource folder of my project. Is there a way to recover that? ...

Plot Title/Annotation

Hello, I want to add a title to my graph that gives a short description or name about the plot. For example, I have a table with a list of products and my graph shows how much those products cost. There should be a label/annotation superimposed on the graph that gives the name of the product. ...

move variable from viewDidload to implementation

hi all in one .m file i have these codes. i want to set num variable ( int num ) to static variable i. static int i = num; #import "RecentView.h" @implementation RecentView static int i=0; - (void)viewDidLoad { //some code here ... //int num = [latest intValue]; int num = 10 ;//for example [super viewDidLoad]; } ...

Have view animate when using initWithNibName

Hi, I am trying to animate my new views as they come in or go out and can't seem to figure out how to do this. I have tried several different things to no avail. Here is the code on how I load them: (void) displayView:(int)intNewView { NSLog(@"%i", intNewView); [self.currentView.view removeFromSuperview]; //[self.currentView.view ...

Are Subversion 1.6 & Xcode 3.2 compatible?

Trying to get Xcode to work with Subversion server. Server: Subversion upgraded to 1.6.9 (Mac OS X Leopard 10.5.8) Client: Xcode 3.2.1 (Snow Leopard 10.6.2 with Subversion 1.6.5 though not sure that matters) Repository on server is setup and working fine via command line. However, I get an error when trying to create the Repository...

Vertical slider in cocoa application menulet?

I would like to add a vertical slider to my cocoa menulet application. Just like the vertical slider in the system volume menulet. How do I add this using Interface Builder? And if not with Interface Builder then how? ...

How can I jump to the App Store from a UIWebView link in my iPhone app?

I want to take a user OUT of my app and into the App Store when they click on a link within a UIWebView in my app. But when I click on the link, nothing happens (sim AND device both). How can I jump to the App Store from a UIWebView link in my iPhone app? BY THE WAY: The link in my UIWebView html is as currently follows (minus the self...

Xcode 3.2 fonts are too bold on dark backgrounds

I just upgraded from Xcode 3.1.4 to 3.2.1. Previously I've been using the Dusk color theme. After the upgrade I noticed that the fonts on this theme seem much bolder that for other default themes, even though they all use the same font type and size (Menlo Regular - 11). It seems that Xcode makes the font a little wider as you change the...