xcode

Xcode variables

In Xcode, I know that you can get variables such as PROJECT_DIR to use in some situations, such as a run script build phase. I am wondering if it's possible to get the build type: IE 'Release' or 'Debug'. Any ideas? ...

UIScrollView Disappears From Interface Builder?

i have interface builder 3.1 but i don't see any UIScrollView and UIAlertView is something missing there?how can i get them in interface builder. i want a view with 50 labels and i want to add them via Interface Builder not using the code please help... ...

how to implement/calculate this function in objective c?

CUMIPMT(Rate,NumberOfPayments,PresentValue,StartPeriod,EndPeriod,Type).? plz tell me a step by step guide how this formula works. ...

cocoa: API to grab other application's window/document name

Is there an API in cocoa in which you can grab an application's window/document name? I've already got [[NSWorkspace sharedWorkspace] launchedApplication] to fetch all available applications, so I've got access to the bundle name or process id. What should I look into so that I can get other application's window/document name. ...

Override Interface Builder instantiation of objects?

I'm developing for the iPhone, and I have a class DataManager, that is used to maintain my application data. When the application launches/exits, the data is read from/written to disk to create an instance of this class, using the NSKeyedArchiver (and Unarchiver) classes, since the DataManager adheres to the NSCoding protocol. One probl...

Force shutdown of iPhone

Hi guys, Is it possible to force the iPhone to shutdown (programmatically, of course)? Thanks in advance! ...

Build Boost on Mac with Xcode...

Hi everyone! I've recently got acquainted with Boost library and I'd like to use it in my Xcode project. But sadly there is no HowTo or FAQ on how to do it :( What's the sequence of actions to build and use Boost libraries in Xcode? Thanks in advance :) ...

Can I make Textmate completions ignore capitalisation?

I've used Textmate for a couple of years, but for objective-c I'm finding that Xcode is easier. One of the reasons I like Xcode is that I can type "nsui" and it will suggest NSUInteger for me. If I want the same thing in Textmate, I have to type "NSUI" since the start of the suggestion I want is all capitalised. Textmate won't match the ...

Does .h need to be included when using header search path?

I'm referencing a static library. I've dragged the library project into my app project and reference it relatively. The .a file from the library is linked into my app target. I've added a reference to the library's .h files' folder via "Header Search Paths" in the app project. Then I add an import in my app's .pch file to a particula...

How to build a Framework class in XCode?

Hi Guys I want to build a framework regarding some common aspects used in xcode like that of UIKit,Foundation etc..Is it possible for us to create our own framework which could be reused later and if yes could you tell us a step by step procedure of how to do it? Looking forward for your help Thanks Arun ...

Is there a way to simulate multiple iphones using xcode/iphone sim?

I'm planning out a game that requires multiple users and I was wondering if there's a way to fire up multiple instances of the iPhone Simulator. I didn't see anything in menus or in Google search results, but I just wanted to make sure I wasn't missing anything. ...

How do I test if a string is empty in Objective C?

How do I test if an NSString is empty in Objective C? ...

Anyone succesful in debugging unit tests for iPhone?

I found examples on how to debug your unit test in Cocoa or the ADC page here. But I can't get the debugging to work for an iPhone app target. I can get the tests up and running and they are run during the build, but what I need is to debug the tests for some of the more complex failures. ...

load a google map from this information in iphone?

hello guys i have a UITableCell which has some details like this "550 Ashbury St., San Francisco, CA, 94117".the details are coming from database.now i want that when i click on the cell a new view should be loaded with google map with this address. any idea how to achieve this??? ...

strange splash screen problem in iphone native application?

i have a application i put Default.png for splash screen according to apple's documentation.the splash screen is displaying fine.but when i delete the Default.png and references of png.it does not removed it is still showing the splash screen.i am running the program in simulator.? ...

how to put different max character limit on textfields in one View in iphone?

i have a UIView with 10 UITextFields on it.i want to limit the different max character length on each UItextField.suppose on the first textfield the max length should be 17,for second and third it should be 2.how do i achieve this? ...

Finding exception in Objective c code

Hi I am debugging my application on iphone (OS 2.0) using X-code 3.1 iphone SDK 3.0 beta 5 . My application crashes giving message * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray insertObject:atIndex:]: index (8) beyond bounds (8)' 2009-05-23 17:13:32.304 myApp[405:5a07] Stack: ( 808163835, ...

using image or tint color on uinavigationbar in iphone?

how do i show a background image on a navigation bar or give tint color to the navigation bar in a native iphone application?? ...

How to view property value in debugger

I have a UIViewController and would like to see properties such as myview.view.hidden. In another class where I declare an instance of UIViewController, I can assign and read the property through code but would like to know the value at various points. In the debugger console, I can't do "po myview.view.hidden" or "p myview.view.hidden...

How to connect a view to the graphic context?

I am a complete newbie to XCode, so I have been climbing the Quartz2D learning curve. I understand that a view's drawRect method is called whenever a refresh of the view's graphics is needed, and that the setNeedsDisplay method activates a redrawing. But what I can't find is a clear explanation of the relationship between the graphics...