xcode

How to include 512X512 icon in my iphone app?

Apple HIG says I must include a 512x512 and a 29x29 icons along with the 57x57 icon. Now how do I "include" the large icons? I have Icon.png and Icon-Small.png files, but how do I include the 512x512 version of the icon? ...

How do I call an Obj-C method from Javascript?

Hi all, I'm developing a native iPhone app using Phonegap, so everything is done in HTML and JS. I am using the Flurry SDK for analytics and want to use the [FlurryAPI logEvent:@"EVENT_NAME"]; method to track events. Is there a way to do this in Javascript? So when tracking a link I would imagine using something like <a onClick="fl...

Xcode & GitHub & SVN

Dear all, I was wondering if anyone has played around with GitHub's new support for SVN? I would really like to try this out with Xcode if anyone has could they point me in the right direction on how to setup Xcode SVN etc. Regards Lyon J Till ...

How to format float to 2 decimals in objective C

I have a string that I'm converting to a float that I want to check for values in an if statement. The original float value is the iPhone's trueHeading that is returned from the didUpdateHeading method. When I convert the original float to a string using @"%.2f" it works perfectly, but what I'm trying to do is convert the original float...

Why isn't Xcode building a file in my project

I have a static library project that I inherited from another developer. I added a class to the project and built it. When I include the static lib in another project, the build fails with a symbol not found error for the class that I added. I looked at the build logs for the static lib project and I noticed that the .m file isn't com...

iPhone Dev: Animating PNG Sequences

What is the best or recommended technique for animating PNG Sequences. Heres what I've learned: Do it Manually Using MutableArrays containing Strings, you can animate a UIImageView with a timer which increments an index number UIImage - animation methods This works, the only problem is to find if an image has completed its animation, y...

App is fast on 3GS but slow on 3G

Hi all, I'm new to computer coding and have just finished coding an app and tested it on both 3G and 3GS. On 3GS, it worked as normal as on the simulator. However, when I tried to run it on 3G, the app becomes extremely slow. I'm not sure what's the reason and I hope someone could shed some light on me. Generally, my app has a coupl...

Cannot find protocol declaration in Xcode

Hi.. I've experienced something today while I'm building my app. I've declared a protocol in my MyObject1 and add delegate property on it. I've assign MyObject2 as a Delegate of the MyObject1. I've added it in this way as usual @interface MyObject2 : UIViewController <DelegateOfObject1> But the Xcode says that my the protocol declara...

NSTableView binding problem

I have only just started with XCode (v3.2.2) and Interface Builder and have run into a problem. Here is what I have done: I have made a class to be the datasource of a NSTableView: @interface TimeObjectsDS : NSControl { IBOutlet NSTableView * idTableView; NSMutableArray * timeObjects; } @property (assign) NSMutableArray * timeObje...

Smart way to search an array of arrays

I have an array of arrays with objects and now want to get all objects for a certain date (which is an object property). what's the best way to query it? ...

Xcode 3.2: Build & Analyze never finds any issues

I've used the Clang Static Analyzer from the command line before. I wanted to try Xcode's built-in version via Build & Analyze. I never get any negative results even though i specially prepared my code with very obvious issues Clang was always able to point out: // over-releasing an object: [label release]; [label release]; ...

Is the scope of what Xcode's "Build and Analyze" will catch as a leak supposed to be this limited?

It doesn't care about this: NSString* leaker() { return [[NSString alloc] init]; } I thought it would have been smart enough to check if any code paths could call that function without releasing its return value (I wouldn't normally code this way, I'm just testing the analyzer). It reports this as a leak: NSString* leaker() { NSSt...

Opengl Triangle instead of square

Im trying to create a spinning square inside of xcode using opengl but instead for some reason I have a spinning triangle? I'm doing this inside of sio2 but I dont think this is the problem. Here is the triangle: http://img220.imageshack.us/img220/7051/snapzproxscreensnapz001.png Here is my code: void templateRender( void ) { con...

Compiling Freetype for iPhone SDK (XCode)

I was wondering if anyone knew how to configure FreeType in XCode for the iPhone SDK. I have been trying with no success. Thanks ...

How do I track down the source of a KVC exception: this class is not key value coding-compliant for the key toolbar?

I get this error when I try to run my app: 2010-04-29 13:49:01.355 MyApp[56123:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MyViewController 0x5112b10> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key toolbar.' MyViewController used to have an IBOutlet call...

having a test debug app and a released debug app side by side

When I download my app from the iStore, the latest test version installed to my phone gets over written. Does anyone know how to have two versions of the same app side by side? On a test project, I edited the build settings so that "realease" and "debug" have different product names. This seemed to solve my problem, however when I try t...

Why call autorelease for iVar definition in init method?

Hi, I just familiarise myself with the CLLocationManager and found several sample class definitions that contain the following init method: - (id) init { self = [super init]; if (self != nil) { self.locationManager = [[[CLLocationManager alloc] init] autorelease]; self.locationManager.delegate = self; } ...

How To load scroll view of some place directly

hai to all , I have added a scroll view of content size 320,1000 to my view its working properly and loading with starting content of scroll view. But,now I want it like showing some place of it when its getting load. that is it shows directly some place of it instead of starting of the content ... Help me it is urgent .. I have tried wi...

How to use genstrings across multiple directories?

I have an directory, which has a lot of subdirectories. those subdirs sometimes even have subdirs. there are source files inside. How could I use genstrings to go across all these dirs and subdirs? Let's say I cd to my root dir in Terminal, and then I would type this: genstrings -o en.lproj *.m How could I tell it now to look into a...

Trying to understand crash log output

I'm trying to understand debug output from a crash log. I have the following line from the crashlog: 22 FG 0x00022b94 0x1000 + 138132 I understand how to use atos on 0x00022b94 to get the source code location. What I would like to know is why the crash log helpfully splits that number into 0x1000 + 138132?...