xcode

Generate Windows Compatible Binary from Xcode C++ Console Application

Hi All, I am using XCode for developing a C++ Console Application. After compiling XCode generates the Unix Executable File, which run on Mac perfectly. But doesn't work on windows. I have tried changing the active architecture as well from x86_64 to i386 but no luck. Is it possible anyway to generate executable like Borland C, or Turb...

Reading a text field and comparing to an array object ?

Hi all, I have setup an array full of words as objects. I am trying then trying to compare what the user enters in a uitextfield to an object in the array to see if they match. I have captured a pointer to the uitextview in one of the delegate methods, however I cannot compare the text field contents to the object in the array. I assu...

`bjam --toolset=` and tag values for Apple compilers?

When building Boost binary libraries with bjam, one may specify which compiler to use, without specifying a particular compiler version, by using certain values for the --toolset= option. For example: bjam --with-serialization --toolset=msvc the toolset value msvc tells bjam to search your system for some version of Microsoft Visual C...

how to create fixed space and flexible space bar button items programmatically

i want to create bar button items programmatically to place these fixed space buttons between buttons.... ...

I can't make gcc work

I have to compile a .c file that came with a matlab toolbox. To this end I downloaded xcode 3.1.4, and now I am trying commands like gcc -o solvemc solvemc.c and getting errors like Undefined symbols: "_N_VFree", referenced from: _main in cca0ChgX.o _main in cca0ChgX.o _main in cca0ChgX.o _main in cca0ChgX....

Xcode not updating nib files.

I am adding new properties in the controller but they are not appearing in IB. I am putting IBOutlet before the properties but for some reason they are not appearing there, neither IBActions. I restated xcode, my computer but nothing is changing this. This problem started when i installed the new version of xcode 3.2.3. Update: OK i w...

uninstall only one xcode instance

I have two versions of XCode installed, one is version 3, and the other is the latest beta version which installed under a different directory. I have read many examples how to uninstall Xcode using a method similar to the following: sudo /Library/uninstall-devtools --mode=all But I am not sure if it will uninstall both installati...

Using bookmark button in UISearchbar.

How can we use the bookmark button that appears in UISearchbar. I didnt found any delegate methods for that. Any help will be greatly appreciated. Thanks in advance! ...

How To delete Event from Iphone Calendar Programmatically?

How To delete Event from Iphone Calendar Programmatically? I am trying to delete Event From Iphone Calendar tell me how to delete Event From Iphone Calendar Programmatically Here Is the way to add event in iphone calendar ////// Saving Event In Calendar EKEventStore *eventStore = [[EKEventStore alloc] init]; EKEvent *event ...

Reading accelerometer after screen lock

Hi I have an app that reads data from the accelerometer. However after the screen gets locked this not possible. I have tried the following -(void)startMonitoring{ UIApplication *thisApp = [UIApplication sharedApplication]; thisApp.idleTimerDisabled = YES; .... .... } -(void)stopMonitoring{ UIApplication *t...

background application for iphone 4

hi all... i want to let my app play sound every 20 min even when the app is on background or the iphone is in sleep mode ... i used: [NSTimer scheduledTimerWithTimeInterval:delay*60.0 target:self selector:@selector(goMethod) userInfo:nil repeats:YES]; that working maybe for 1 hour and then stopped can any one help me to solve this probl...

show default calendar in my app

Hi, is there an way to push the default calendar of the iPhone on one of my views (= can I call the default calendar to show up)? Than I could use the Event Kit Framework to add some events. Cheers ...

Xcode Instruments CPU time

if i run an application with the performance test, the "cpu monitor" show me some informations like process ID/Name or CPU Time. But in which unit of time does it measure ? An example: if i get 05.04 , what does mean for me Best Regards ...

Change app name in apple store of an already released/available iOS app

Hi, I released my iOS app in Apple App Store some weeks ago and want to rename my mobile app now (I only want to add a space). I did not found an "edit name" button in iTunes Connect so I tried to find a solution via google. But I did not find anything about this. Can someone tell me how to rename the app? Is it enough the rename the ap...

Class specific data

Hi, using xcode I would like to achieve a public shared class that stores its own data. So, if I'm in one class I can call it from another and retain persistence. For example, I have multiple viewcontrollers for an iPhone project. When the app is opened, it checks with a seperate service if that player is logged in and returns some inf...

Xcode links to xibs and images mixed up?!

I have managed to get myself into a bit of a pickle. I have had some problems with my xcode and in an effort to resolve this I have ended up adding and deleting some XIB files and images. Originally these images were in a folder in xcode but I took them out. Anyway the long and short of this is that my app is no longer working and all my...

UILabel strange behaviour

hi, i have this: - (IBAction)checkupdate { statusText.text = [[NSString alloc] initWithFormat:@"Checking......"]; everytime i press button, the string get display, ok no problem with that. now when i add NSURLRequest *theRequest = [NSURLRequest requestWithURL: [NSURL URLWithString:@"http:/myserver/version.plist"] ...

GCC 4.0, 4.2 and LLVM ABI Compatibility

Are the three main compiler flavors supported by Xcode (gcc 4.0, 4.2, and llvm) binary-compatible with one another? What kind of gotchas and corner cases should I be aware of when bringing a multi-library project up to speed with the most recent Xcode tools? ...

Localization - two fr.iproj folders

I'm in the process of Localizing my app ready for the market. I'm going through all the .Xib files and have just found that 2 of the 10 Xib files are in their own fr.iproj folder. I now have two fr.iproj folders. This doesn't affect anything, the app still works fine. I'm just confused as to why there are two fr.iproj folders. There are ...

Simple bug crashes hangs Xcode.

I have build the simplest possible iPhone program, a window based program. I only changed the testappdelegate.h file to be the following: #import <UIKit/UIKit.h> @interface TestAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; int pos[10]10]; //note the error here. } @property (nonatomic, retain) IBOutlet UIWi...