xcode

How to type a square character in Xcode ?

How do I type a square character in Xcode? Not as program code but in a string. I tried to copy a character but its not working. I am still stuck with: aCounty.area = @"301.338 km2"; ...

CCLabel line-height in cocos2d

I was wondering if it's possible to adjust the line-height of a CCLabel. I got a 3 lines of text but would like to reduce the lead and maybe the letter-spacing. I haven't found any solution at the moment. Would bitmap fonts help me? I haven't gone for them because I don't have to change the string value at all. thanks ...

Simple C++ project issue with XCode

I am setting up a C++ project in XCode and it seems to not recognize my classes. By default, there is a main.cpp file in the source folder. I added a Node.cpp and Node.h file to this folder, and included the Node.h in my main.cpp file. Unfortunately, it's not recognizing it, it says No such file or directory. Why is it not linkin...

iOS Jump to different view

I have a navigation based app. The root view is a list of items. From this root view you can tap on a table cell to an item's detail view. Or you can go to a form view to create a new item via the 'Add' button in the nav bar. My question is how I can jump from the form view to the detail view once the new object has been created? I d...

Nesting XIBs in Interface Builder / embedding by reference

Hey folks, Say I have created an XIB for an icon view. I then want to embed a number of instances of this icon view in a different XIB container view by reference, so if I alter properties / layout in the original icon view XIB, the instances in the container view XIB reflect these changes. Essentially, embedding by reference. Maybe ...

IBActions are not working in another viewcontroller

i have created a project which has different xib viewcontrollers.In first view am selecting an image through picker controller and am displaying it in the secondviewcontroller.In secondview controller i have some buttons and i have given some IBActions to them.Here starts my problem that am successfully displaying the image in secondview...

Expected identifier or '(' before '.' token

I'm new to Objective-C so I'm using a book to get to grips with it. I'm at a bit where it's explaining structs and I can't for the life of me get them to work. I have the following code: int main (int argc, char *argv[]) { struct node { int nodeID; int x; int y; BOOL isActive; }; typede...

MkMapView don't respond on touch event when panning and zooming?

I have view controller that has mkMapview, buttons and another UiView on top of the Map. The map don't respond on touches event. How can I make mapView to respond on touch events. Thanks in advance. ...

XCode 3.2.3 running on iOS3 - Wired framework problem

I looked around on Stack Overflow and I didn't find the solution of a strange problem. I started developing a project on XCode 3.1 then I decided to upgrade on XCode 3.2.4 and targeting iOS3 iPhones. I then followed the topics dealing with that and I changed the Base SDK to iOS 4.1 and the target os to 3.0. Everything worked fine until ...

Xcode not displaying console output when compiling with gloox

Hi I'm currently messing around with gloox and having problems displaying console output in Xcode 3.2.3. I've tried compiling the example from the website and that works. However, when I try to print anything into the console, I get nothing. This only happens when I am initializing the library. As soon as I remove reference to it and s...

Is there a way to integrate Xcode with bugzilla?

Is there a way to integrate Xcode with bugzilla (like MyLyn for Eclipse) or so? ...

Mimicking xcode's build process through xcodebuild

I'm looking to build + run my iphone xcode project totally outside of xcode. Currently I'm using xcodebuild to build the project - which seems to build cleanly: https://gist.github.com/8eadfb1acca4d101624b Unfortunately it doesn't seem to replicate the same Build as done by xcode. Rebuilding it leads to a bunch of syntax errors. Are...

how to integrate ASIHTTPRequest to iphone project

hi all I am trying to add ASIHTTPRequest library to my iphone project i followed these lines Integrating ASIHTTPRequest ASIHTTPRequest is a powerful open source library written by Ben Copsey from All-Seeing Interactive (and he’s a fellow cocos2d developer too!) It makes it easy to post data and files, and has tons of other great...

Using Objective-C++ static library in straight Objective-C target

I build a static library that uses Objective-C++. When it is used in a straight Objective-C target, I get Undefined symbols: "___gxx_personality_v0", referenced from: I can solve this by adding -lstdc++ to the target's "Other Linker Flags". Question: Is there a way to specify this in the static library itself to make this step unne...

xCode Active Configuration: Release, Distribution

Hi, In xCode 3.2.3 (haven't updated to 4.1 yet) under Active Configurations I have: Debug, Release, Distribution. When I select Release, I always get 'Base SDK Missing' and when I do a 'Build and Archive' and try to 'Validate Application', I get a Code Sign Error. When I select 'Distribution' the 'Validate Application' succeeds. I ha...

Getting video to play in simulator

So I have an alert view pop up in my application and on clicking a view button a video is supposed to play but nothing happens in the simulator. I don't want to test this on a device until I get it working in the simulator. This is the code below as far as I can tell it should work. It reaches the Log statement and outputs to the console...

In App Purchase : adding new items for sale

I Just wanna make sure if I got it right, If I want to sell ebooks through my iphone app, I shouldn't bundle them with my application ( because I want to add ebooks for sale from time to time ), they should be put on a separate server, and each time i want to add an ebook, I add its information in itune connect , and the ebook itself is ...

Adding a Finder Window in MacOSX Project

Hi, I'm having trouble finding out how to add a Finder Window to my MAC OSX project in XCode. Is this possible or do you have to build one out from scratch? Thanks ...

which control touched

In below code how can i understand that which control touched?(imagine that exist button1,label1,.. on view) - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; } ...

Missing import function SCM in Xcode?

Hello, I've followed this link: http://stackoverflow.com/questions/3852986/how-to-set-up-an-scm-in-xcode However when opening the window to import the repository I have only the repository bar and no import features. I have also run the command line 'svnadmin verify [my svn directory]' as well as seeing the green light in the configur...