xcode

iPhone animations - animating one things causes other things to be animated

Hi there, I've animated moving a UIView as follows: CGRect rightPop = CGRectMake(167, 270, 142, 73); [UIView beginAnimations:nil context:NULL]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimationDuration:0.4]; [rightToast setFrame:rightPop]; [UIView commitAnimations];...

Presenting a view controller modally - iPad

I found this code to display a modal view: - (void)add:(id)sender { // Create the root view controller for the navigation controller // The new view controller configures a Cancel and Done button for the // navigation bar. RecipeAddViewController *addController = [[RecipeAddViewController alloc] initWi...

iphone app only works first time on simulator

I've got an issue with my iphone App and i'm not sure if its an xcode project issue or a code issue (I'm leaning towards xcode project issue at the moment). If I reset the iphone simulator and build and run my app it works fine. If I then do a build and debug again the app will crash straight away with no meaningful callstack. The app w...

Is there a trick to see NSString values in an NSMutableArray in Xcode debugger?

When I debug, I never get the value of an NSString inside of an array. All I see are cryptic symbols, probably memory addresses of something like 0x1dc3753. I dig into all the stuff and expand everything, but no humanly readable value at all. Not really useful at all. How do you go about this (besides NSLogging everything)? ...

Problems after editing ~/.gdbinit

I put this in my .gdbinit after seeing it on CocoaDev: fb -[NSException raise] fb -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] fb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] #define NSZombies # this will give you help messages. Set to NO to turn them off. set env Malloc...

Debugging threads in Xcode for iPhone

When debugging in a thread created with an NSOperationQueue I can set breakpoints just fine, but actual crashes result in the thread silently dying. This is in the simulator, but it also happens on the hardware itself. Is there a setting in Xcode (gdb, really) that will catch these? ...

Name of Provisioning Profile used to sign an iPhone app?

I wrote a script that uses xcodebuild to generate an AdHoc build of an iPhone application. I would like to edit this script to output the name of the Provisioning Profile used to sign the build. This would allow me to include the Provisioning Profile in the zip that is automatically generated. This way, I could automatically send the ar...

g++ fails mysteriously only if a .h is in a certain directory

I'm experiencing an extremely weird problem in a fresh OSX 10.4.11 + Xcode 2.5 installation. I've reduced it to a minimal test case. Here's test.cpp: #include "macros.h" int main (void) { return 1; } And here's macros.h: #ifndef __JUST_TESTING__ #define __JUST_TESTING__ template<typename T> void swap (T& pT1, T& pT2) { T pT...

Where can I find a version of Xcode 3 that will run on Mac OS X 10.5?

I need to install Xcode 3 on my MacBook Pro (so I can install Haskell Platform). I can't upgrade the MBP to Snow Leopard (10.6), but the Xcode 3 available for download from http://developer.apple.com/mac/ requires 10.6. Is there a version of Xcode 3 that will work with Mac OS X 10.5.8? Where do I find it? My MacBook Pro was provided ...

Xcode can not get source files from SVN repo

HI, I have set up a SVN repository in an external machine via command line and using mac os x and works great. Now I want Xcode (snow leopard) to get the source fron the repo, but I get a lots of errors, and have no clue what is going on. Could you point me to some godo tutorial or link for this? I googled but found nothing good. Th...

Location of Xcode icons

I was taking a look at the Xcode bundle and noticed that some of the icons visible on the UI don't exist there, eg, the Run button with the hammer on top. Where would they be? Where else can you store resources in a Cocoa application? ...

iPhone : making UIBarButtonItem that is arrow shaped

Hi there, I have a UIBarButtonItem on a navigation bar. I'd like to make it arrow shaped. By that I mean I want it to be square except for a pointy side. Does anyone know how to do this? Thanks! ...

Xcode template <<date>> format

I'm working up a custom Xcode template, and I'd like to change the way <<date>> is formatted. For example: // Created by «FULLUSERNAME» on «DATE». // Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved. if the file was created today would fill as: // Created by SooDesuNe on 2/24/2010. // Copyright 2010 MyOrganization. All r...

Setting the active executable in Xcode

I have just updated to Xcode 3.2 Beta 3. Since doing this - the project I am working on only has one option in the drop-down box in the top-left corner for 'Active Executable' that is set for 'iPad Simulator (3.2)'. I am developing for the iPhone and have no interest in the iPad. How can I get the iPhone to appear as an active executabl...

How can I test my new app on my real iPhone?

I have jailbroken iPhone. I want to test my applications on my real iPhone whithout paying $90 . How can I do this? ...

How can I replicate the Swing(Needle) animation of VoiceMemo.app?

Hello all, I want to create an application in which i want to record user voice.I want to do the same naimation as voiceMemo application does on iphone when we record sound? any sample code would be appreciated. Thanks. ...

Decompiling Objective-C libraries

I've just finished a library in Objective-C that I compiled as a Static Library for distribution. I'd wanted to know what chances to get this decompiled are out there. Do you know any software that can do this? If so, how could I protect me better? EDIT: My static lib is made for iPhone / ARM I created an algorithm that depending o...

Duplicate XCode Project but same executable on iPhone

Hi there, I need to develop two similar projects so, after I developed the first one, I copied the project folder, I renamed the folder, I renamed the project with the Project->Rename... function. Everything works fine but when I run&debug my second project I see that the first one project disappear and it is substituted by the second on...

How to disable assembly in XCode's debugger window?

For some reason my XCode debugger shows assembly code when debugging an iPhone app code. I'd like to see only Objective-C code, not assembly. This used to work ok but now someting has changed. How to get back to "normal" debugging? Is there a setting in XCode somewhere? /pom ...

Localization of strings in static lib

I have a project that uses a static library (SL). In that SL, there are a couple of strings I'd like to localize and the project includes all of the localization files. The localization works just fine when storing all text translations in the same file. The thing is that I'd like to separate the SL strings from the other strings. I have...