xcode

Git history cleanup doesn't seem to have an effect

Hi, i ran the following 2 commands to clean up .pbxuser and .mode1v3 files from my git repository, but afterwards when i e.g. fire up gitx i can still see them in the history. git filter-branch --tree-filter "git rm -rf --cached --ignore-unmatch *.pbxuser" HEAD rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressiv...

app icon not showing in iphone simulator

I have a 57x57 PNG file in the root of my bundle (update: and added to my project), and the "Icon file" setting in my .plist file has the correct filename, but when the app is installed to the simulator, the icon is the default grey/white one. I've tried deleting my app from the simulator (both through the simulator and through rm -rf o...

iPhone XCode debugger 'print' of method calls returns (IMP) pointers instead of printing return value

Whenever I try to print the return value of a method in my XCode gdb console (and in the value formatters), I keep getting (IMP) pointers instead of the return value. For example: print [alternateDepartures count] $9 = (IMP) 0x33725441 <-[NSCFArray count]+1> here, alternateDepartures is an NSArray of ints, as evidenced by: (gdb) po al...

Completely uninstalling both versions of XCode

As usual I typed sudo Library/uninstall-devtools --mode=all It uninstalled the first version (Beta) properly. Tried the same thing on the older Stable Version which I have installed to "XCode Stable" Getting this error Use of uninitialized value $dir_name in substitution (s///) at Library/uninstall-devtools line 153. Use of uninitiali...

How to manually throw a compiler error in GCC and Xcode

In xcode, while compiling apps with gcc, I want to throw compilation time errors if things like NSZombieEnabled is on for a distribution release, thus ensuring that compilation will fail and I won't accidentally do something stupid. I did some googling, but could not figure out how to cause the compiler to bail if a certain condition is...

UITouches not detecting.

Hi, My UItouches is not detecting in my Slideshow nib file. What is the problem? Can anyone help? @class Slideshow; @interface RootViewController : UIViewController{ PreferencesController *preferencesController; Slideshow *slideshow;} Slideshow Implementation @implementation Slideshow - (void) touchesBegan:(NSSet*)touches withEven...

XCode Syntax Coloring Broken

XCode frequently seems to lose it's mind, and doesn't color code system classes or provide correct "code sense" suggestions. This is endlessly frustrating. The question has been asked on at least three other occasions: http://stackoverflow.com/questions/2263994/problems-with-xcode-syntax-highlighting http://stackoverflow.com/questions/...

NSRunningApplication, return list of recent used applications?

i'm trying to get a list of the most recent used applications. NSWorkspace returns me a list of active applications and i can sort them on a few options using NSRunningApplication. see list below: launchDate finishedLaunching processIdentifier i dont want the lauch date but the recent 'active' date (like the way cmd-tab sorts). Does ...

PickerView select first row problem

Hi guys, i have a pickerview that pops up from the bottom of the IPhone's screen when a textfield begins editing. When a row is selected my pickerview is dismissedany. But the problem is i don't manage to select the first row which is shown under the selection indicator. Right now i can select all except the first row. So the pickerv...

null cString error when reading database

Other then error due to missing database or record..how about the same error when documents folder is missing?i can't seems to find my documents folder where it store the database. i can't even launch my application at all..i've tried opening all my backup but none works! ...

iPhone 4.0 Screen Resolution and writing robust code...

Does anyone know what will happen with existing apps when they run on the iPhone 4.0 in terms of the new screen resolution? I am assuming, just like developing for the iPad that there should be no hard coded screen resolutions in your code. I'd also like advice on the best way of writing robust code to work well on any device. For ins...

simple image animation with the keyboard

Hi the app I am currently working on requires a simple animation to be performed, which I am able to do but timing is an issue. The app uses the slightly opaque keyboard and I have set up a black background to make it more visually pleasing . The app is a utility app and as the user clicks on a settings button the app will flip which loo...

Format number as I type Expand this post

Hi I am working on an app at the moment that requires number input to be formatted as the textfield changes as well as perform a calculation. I have the text fields set up so that as the user types notifications are passed out and a calculation is performed. However what I need to do now is format the text to be in this style: €1,000,000...

picker view content

How do I change the content of the picker view? ...

Processing a method after the view has loaded..

Hi ! I have implemented a subview which is supposed to load immediately when I click a button in the parent view. After loading the subview(which is basically holding an activityindicator), the program is supposed to process a method(which gets data from a server, so takes time) in it. However, I am unable to do it. What happens now i...

Creating a cocoa Application without nib files/fully pragmatic

Yes, I know this goes against the whole MVC principle! However, I'm just trying to whip up a pretty trivial application - and I've pretty much implemented it pragmatically. However, I have a problem... I create an Empty Project, copy all the frameworks over and set the build settings - and I get errors about the executable.. or lack of...

iphone simulator always needs clean and build!!

I always need to Build > Clean and Build and Run in order to check my new updated code. If i dose not clean first the simulator does not show the updated code. How to correct this behavior? ...

Can't get rid of this warning?

I'm getting this warning "Format not a string literal and no format arguments? Any ideas? -(BOOL)isFirstPointReached{ NSString *firstPoint = [NSString stringWithFormat:[pointsToFillArray objectAtIndex:0]]; NSString *lastPoint = [NSString stringWithFormat:[pointsToFillArray lastObject]]; if([firstPoint isEqualToString:lastP...

Memory consumed by an object during its lifetime

How can i trace memory consumed by an object in its life time when i am testing my application on device? [e.g.: without any instruments if possible] ...

NSUserDefaults - reload needed?

hey guys, I use NSUserDefaults to store some stuff. It works fine but only after i restart the app. I use: [prefs synchronize]; I thought it would immediately save the data but instead preferences stay null. If you have any idea or already deal with it let me know. Thanks for any help. Wallou ...