xcode

How to get port number for iPhone Chatting Application

I am developing a chat application. But Right now chatting is possible with only google because I know only google's port no. xmppClient = [[XMPPClient alloc] init]; [xmppClient addDelegate:self]; // Replace me with the proper domain and port. // The example below is setup for a typical google talk account. [xmppClient setDomain:@"tal...

Copying dynamic library (.dylib) into a framework (.framework)

I have two XCode projects: a framework and a client application. My application depends on my framework and everything works fine with that — the framework is being recompiled everytime the app is, the projects build paths are set correctly, it's completely okay. Now the framework started using 3rd party dylib file, and it's linked aga...

Can't build a new project with xcode on my MacPro

Hi every1! I've installed on my MacPro (intel) Xcode 3.2.1 (iPhone SDK 3.1.2) and Snow Leopard I made a new project (called Untitled) for iPhone OS, when I try to build, it returns an error: *file not found: */Users/user/Documents/Untitled/build/Untitled.build/Debug-iphonesimulator/Untitled.build/Objects-normal/i386/main.o */Users/us...

How to get a copy of the image from UIImagePicker

Hi, I've got a very simple app where the user selects a UIImageView and presses a button to take a photo with the camera. The image is then returned and displayed in the UIImageView. However, since the UIImageViews are sharing the same delegate, when there's already an image in one of the UIImageViews, and I go to take a photo to be pl...

Xcode: entering user input when debugging

int main() { cout << "Buy or sell (b/s): " << endl; string buy_sell; cin >> buy_sell; ..... } when i try to step through this in Xcode, i just stops at the cin >> buy_sell line, because it's waiting for the user input. How do i enter the value i want in the debugger so i can move past this? I'm using Xcode 3.2.1. (I k...

Xcode file system

I am using Xcode as part of my build for OS X, but since it is not the only IDE used, files may be added from the file system directly. As far as I can tell, there are two ways of adding folders: Folder reference picks up all the changes on the file system but does not register any of the files as sources. Recursive copy allows for th...

How to write XCode plugins?

Where can I find resource on how to write XCode plugins? I don't want to write macros and project templates, but plugins that extend the IDE functionality like the ones that can be developed for Visual Studio - capable of displaying in their own window and accessing XCode project data. ...

Objective-C / Xcode project : Where to put structs?

I always try to keep my Xcode projects very well organized but I recently asked myself where to put struct data types. Normal I use a lot of classes even when a struct would do. Since classes are always separate files there are much easier to organize and easier to find. Where do you put your structs? ...

plist bundle version values

I want to set the Bundle Version in my plist. However, it appears that the value that is actually LOOKED at by finder to put the version when you look at more info is "bundle versions string, short" Editing this, however, requires opening the plist file, rather than just editing the "version" in the target settings. Is there a way to ei...

Why are device and simulator builds different?

I'm referencing two static libraries. I build them in debug-simulator mode and all works well with my app. I then create debug-iphone builds and push my app to the device. It breaks with this error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString sizeWithCGFont:pointSize:constrainedTo...

XCode shortcut for wrapping selected text in curly braces "{ }"

Any XCode shortcut for wrapping a text selection in opening & closing brackets - { }, ( ) or [ ]? Growing tired of removing the "}" that XCode automatically enters after I type "{" in cases where I've already got code in the editor that wants to be inside the new brackets. ...

How to get rid of keyboard when user taps background (iPhone)

I have a custom UIScrollView which contains UITableView and UITextView. When user clicks on text field, keyboard pops up and it also disappears when user presses Return key on keyboard. Question: How to get rid of keyboard when user taps on UITableView? No matter what I try, I just can't catch any touch events... Using iPhone 3.0 SDK si...

XCode's Documentation Complains "File Not Found" but Gives Correct Results

When I'm searching for something in the Developer Documentation of Xcode, I constantly get "File not Found"/"The requested file was not found in any documentation set." The odd thing is, it still works. E.g., if I search for NSSound, I can find NSSound. The error dialogue is invoked whenever it attempts to search as I type, which ma...

Line of code causes crash in instruments but not in Xcode

BOOL continueLoop; CGPoint thePoint; while(continueLoop != NO) { continueLoop = NO; thePoint = [self generateRandomLocation]; NSMutableArray *blocks = [self getBlocksForX:thePoint.x]; for(BlueBlock *block in blocks) { if(block.getBlockLocationY == thePoint.y) { continueLoop = YES; } } [blocks release]; } This cause...

target conditional library search paths xcode

I'm trying to condtionally link in. .a static libraries by defines. Is this possible in xcode? Basically trying to wrap library specific code in ifdefs so it can be excluded at compile time by setting flags. ...

Interface Builder doesnt show some of my resource images

I have almost 20 images in PNG format added to my current project on Xcode (under the proper group, Resources). Unfortunately, library window's Media tab doesnt show some of them. And if I create an UIImageView and set one of these invisible images from code, nothing shows up. I also tried from IB with adding a UIImageView and set its so...

Pbl xcode C++ typedef struct toto toto

Hi everyone, I am working on a C++ project on macOS X 10.6.2 with xcode. I tried to compile my code on windows and do not have any problem, I guess Linux is working but I don't have one with me right now. My problem is xcode do not accept this kind of instruction : struct direction { double x; double y; double z; double t; }; typede...

Device Console Errors when Installing or Running App (Debug or Release Mode)

Hi there, I've noticed for a while that the iPhone app I'm developing takes a very long time to launch on a device, even though the app doesn't do much on startup (just basically shows a UIView!). I've just thought to check the device console in the Xcode Organiser and I'm seeing lots and lots of errors when launching the app from Xcod...

Has anyone found a way to merge changes in Xcode project or Core Data model files?

Is there a way to use a VCS (I'm using git) and have it work with merges to the Xcode files? For example, if my co-worker adds a new Group to the project, when I merge in his changes, I get the Group merged in? Or if he adds an attr to a Core Data entity, I get that attr in my Core Data model? ...

How to verify that a ViewController and its View were correctly deallocated?

I've got an app that initially loads in one view controller for a period of time before it's replaced by a UINavigationController (and its corresponding root view controller) in the Window's view. Once the app is being managed by the Navigation Controller I am releasing the previous View Controller and its View. It's difficult for me to...