xcode

XCode Post Build Copy File Actions

Hello, In XCode, how can I call a 'shell script' which is a PERL script that copies the .app and .dsym files to a different directory? I want to pass the name of the project and/or the project's root directory to the script. I want to have the script called every time I build in release and distribution modes but not in debug mode. Tha...

Google maps in iPhone - city & State name by Longitude & Latitude

I have developed an application in which the data About Schools are stored in ASP.NET Web Server. The database has following values. =>School Name => Longitude of School => Latitude of School. Now, I retrieve all the data in iPhone through web-service & NSURLRequest. Now, Following is my Problem. When user Clicks on a school ( in ta...

IP Address? - Cocoa

Hi guys, How would I make a GUI program that displays your Ip address with a click of a button? Please, no difficult explanations, I just started Cocoa not long ago. Thanks, Kevin ...

enable line numbers of stack trace in xcode console

I read this post http://stackoverflow.com/questions/1093999/stack-trace-or-more-info-on-unhandled-exception-in-xcode-iphone It seems like the chosen answer is the correct way, however the answerer doesn't tell you how to create the global breakpoints. Does anyone know how I can create these break points and see the line number of my ex...

When to call self.myObject vs just calling myObject in Objective-C

This little bit of syntax has been a bit of a confusion for me in Objective-C. When should I call self.myObject vs just calling myObject. It seems redundant however they are not interchangeable. Would someone please enlighten me? ...

Does anyone know a tutorial that teaches you to make a bobblehead?

I'm trying to make a bobble head app, but I don't know how to use the movement technology.. Any thoughts? Thanks ...

iPhone: calling UIImagePickerController 'moves' the view that calls it

I recently encountered very strange behaviour with the UIImagePickerController. On our main view we have a button that calls the image picker controller. If you hit cancel on the image picker, I simply dismiss the controller, and for some reason or another my main view moves down roughly about the height of the status bar (which is not...

Two iPhone Simulators at the same time?

Is it possible to run the iphone app in two iphone simulator at the same time? If Yes Let me know?Please. ...

Objective C NSCFString Leaks with NSMutableArrays

I am cleaning up my code in a phonebook iPhone application and the Leaks tool in Instruments is reporting that I am leaking NSCFString objects. Here is the pattern that I am following: I have a Person class in my application that has nothing more than local NSString members and associated properties for first name, last name, etc. My ...

Why is Java caching my app while trying to develop it

Hi, i'm trying to build a Java applet and i'm having a major problem trying to set up my development environment because my applet has bugs in it but I can't fix them easilly because Java won't get the latest version of the applet. I've turned off caching in "Java Preferences.app". I want to set it so that applet wil not be cached at al...

XCode Global Breakpoints don't show stack trace

I set up global break points from locations libobjc.A.dylib and CoreFoundation. I run my iphone app and it hits the exception. XCode stops at the breakpoint but does not show any error in the log besides: Pending breakpoint 1 - "objc_exception_throw" resolved Pending breakpoint 2 - "-[NSException raise]" resolved I click the "Continu...

Sharing xCode Projects across the internet creating file directory issues

A friend and I are both working in xCode. We send each other the most recent version of the application files as a .zip or upload to our ftp whenever the other person needs to work on their area of the project. However, we have had some issues. When I last sent it to him, xCode wouldn't let him open and run the project. However, when he ...

pass variable to segmented control's action

I have a segment control that when one of the segments is clicked I want to pass variables (two integers to be specific) to the segmented control's action. How do I modify the below code to do so? I know how to go to the segment action but I don't know how to pass variables to it. I know this is probably obj-C 101 but I'm stumped. Tha...

How to regenerate an iPhone Xcode info.plist file

I have moved my iPhone app from one machine to another. In the process my info.plist file seems to have a bad bundle identifier and is not working. I want to create an entirely new info.plist file for my project. How can I do this? ...

Adding sqlite framework to desktop Mac app.

I'm using Xcode 3.1.3 to create a desktop Mac OS X 10.5.7 app. I'd like to use sqlite in the app but can't find the framework reference in the MacOSX10.5.sdk folder. I've used sqlite in iPhone apps and the reference comes from the iPhone sdk folders. Should I just reference the iPhone sqlite framework version or is the desktop version...

How to Increase Font Size in the xcode editor?

Either this is a nightmare or it really does not seem to bother anyone that to increase font-size in xcode is a pain in the butt ... I googled and no one seems to have answer to this question ... please tell me its a nightmare. ...

does removefromsuperview releases the objects of scrollview?

for(UIView *subview in [scrollView subviews]) { NSLog(@"subviews Count=%d",[[scrollView subviews]count]); //[subview release]; [subview removeFromSuperview]; } in the above method if i use [subview removeFromSuperview]; it works fine...but if i use [subview release]; it crashes....i want to know that if both are same or is the...

Button events inside UIWebView

Hi All, I want to have a on top of uiwebview, which will scroll out of view as I scroll webview downward. The problem is I am not able to raise/handle the button touchupinside event from the viewcontroller. My guess is webview is eating the event. How can I make the button raise events? One solution is to have a subview containing the bu...

Use Core Data for Storage - in navigation based & window based application - iPhone

There are too many options for creating projects in XCode, But When we select Navigation Based Application / Window based Application We can see the extra option - Use Core Data For Storage. I need brief detail about it. What's new in it? ...

Editing a run script build phase in XCode

In XCode I made a new run script build phase and want to do one of two things: edit it delete it I can see how to add a new one, but not how to access the existing one? Any help appreciated, thanks :) ...