xcode

Xcode console, clear screen programmatically

I'm kinda new to Xcode and even programming. From Xcode, in my code, how do I show the console and clear the screen? I know I could do it with the Xcode preferences, but I would like to do it programmatically. ...

Trying to compile a working irrlicht application on a mac with plain g++ or Xcode

Ok, here it goes: I managed to compile the .xcodeproj provided with the last zip achive into a .a library file (a static library then). I failed to build a working application that uses irrlicht as a 3D engine with Xcode, I don't really know to do it since I'm sort of unable to use an IDE. I tried to link a simple program with this li...

add iPhone functionality to iPad app

I have been developing an iPad app. I now want to make it work on the iPhone also. What do I do in Xcode so it can work both ways? (I am not concerned about adapting to the smaller screen -- that part I can figure out. But how do I get it to start up on the iPhone?) ...

XCode Organizer: Archived application icon missing?

If I choose "build and archive" from XCode, the Organizer is launched and I can see a list of my archived applications. I have 4 different applications (with several archives each), but the icon that's displayed in Organizer for one of the apps is missing -- there is a question mark icon instead. The app does have an associated icon and ...

How do I rename a project in Xcode?

i have a finished application written with objective c and I would like to rename the file. how do i do that? ...

UIImageView Changing Issue IPhone Issue

Hi, I am trying to make a button in my IPhone app which changes an existing image (simple, I know! but I've spent 2 days on this :) I have a button: - (IBAction)myButton { myUIImageView.image = [UIImage imageNamed:@"image.jpg"]; NSLog(@"my button"); } I am attempting to find out why the button is not doing anything. "my b...

Calculating minimumZoomScale of a UIScrollView

Hi, I have an image that I want to load into an image view and set the minimumZoomScale, as well as the zoomScale to an aspectFill like scale that I calculate as follows: // configure the map image scroll view iImageSize = CGSizeMake(iImageView.bounds.size.width, iImageView.bounds.size.height); iScrollView.minimumZoomScale = iScrollView...

How to abort build if run script phase gives an error

Hello all, I would like to use a run scripts target to tag my revision in mercurial and upload it to a server. I created a new run scripts target that depends on the other target building my app. Not I added two run script phases directly one after another. Now my question: how can I prevent executing run script phase #2 if run script ...

Iphone app rejected.

Hi, I had recently submitted my first Iphone app to itunes connect. After review I got an email from apple saying my app was rejected. The reason they provided was "Currently the user has to enter their email address in order to proceed to the application. Applications cannot require user registration prior to allowing acc...

is it possible to build an app that runs in 32bit in Leopard but 32/64bit universal in Snow Leopard with XCode?

I need to load flashplayer with webkit. but even the latest 'square' flashplayer doesn't support 64bit in Leopard by default. Unless I use the flashplayer-10.6.plugin instead. since webkit use a pluginAgent in Snow Leopard when running in 64bit mode. it does't matter whether my app is 32bit or 64bit. but unfortunately, the pluginAgent is...

Contrasting the different ways of adding an existing framework to Xcode

In Xcode (specifically v3.2.4), there are two ways of adding an external framework to a solution Dragging and dropping a framework from finding into XCode Clicking on add existing, and selecting one Surprisingly, the two ways do not yield the same result (I learned this the hard way). Here is a diff of the two methods on the contents...

Gem installation ERROR: Failed to build gem native extension.

I have latest Xcode Tools 3.2.4 installed. Just whenever I try to install any gem, for example, the MySQL gem, such error occurs: VNMB:rails2app ABC$ sudo env ARCHFLAGS="-arch i386" gem install mysql -- \ --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \ --with-mysql-include=/usr/local/mysql/include Pas...

How do you handle a UIPickerView in UI Automation iPhone application testing?

In the following UI Automation script code, I'm able to get the values from a UIPickerView, but I'm not able to select the picker: var picker = window.pickers(); UIALogger.logMessage("picker array count: " + picker.length); var pickerWheels = picker[0].wheels(); UIALogger.logMessage("picker Wheel count: " + pickerWheels.length); va...

How do I change the product name within an Xcode project?

I have an application that I would like to be called IFrames. I've named all of the files appropriately (IFramesAppDelegate, etc.), but when I run it in ad hoc mode it shows up with the name "photoframes" instead. How did this happen and how do I change the name of the product to match the name I've provided for the project? ...

MailComposeViewController - when i press button "Cancel" i don't see the panel with "Draft" ,"Save Draft" and "Cancel" buttons

I am using the MFMailComposeViewController Controller like this: MFMailComposeViewController *picker1 = [[MFMailComposeViewController alloc] init]; picker1.mailComposeDelegate = self; [picker1 setSubject:@"I have a pencil for you"]; UIImage *roboPic = [UIImage imageNamed:@"RobotWithPencil.jpg"]; NSData *imageData = UIImageJPEGRepres...

Why can't I access the Back button in my iPhone application using a UI Automation script?

I have a simple function that should check if the view is at the home interface, and if not, bring it to the home: function returnHome() { if (UIATarget.localTarget().frontMostApp().navigationBar().name() == mainTitle) return true; // set tab bar to calculations UIALogger.logMessage("Set tab bar to main."); if (UIATarge...

iPhone app compatibility with iPad - Must I Support x2 Mode ?

Hi all, I have witten an iPhone game using Quartz 2d. It works fine all devices including the iPad, however when you use the "x2" magnifier on the iPad the game has major display problems. Do I have to make my game work with the x2 magnifier on the iPad - or can I somehow specify that it does not work with x2 mode ? Thanks in advance,...

Three20 project crash on jailbroken iPhone3G, works fine on 3GS without JB

Hi , i've got a strange problem: i've made a simple app using three20 framework, it builds without error, after installing the app on 3GS it works great, but after opening it on jailbroken 3G ot crashes with following errors: warning: Unable to read symbols for "/Library/MobileSubstrate/MobileSubstrate.dylib" (file not found). warning:...

Xcode debugger: why is summary in red color sometimes

Just wondering, when the text is red temporarily but still shows a valid output, what does red color mean? after a few increments in steps, it turns to regular black ...

Change XML in Ipad TopPaid project from mac

Hi, I am trying to modify the TopPaid project from Apple: http://developer.apple.com/library/ios/#samplecode/TopPaid/Introduction/Intro.html I want to put buttons in the Ipad DetailViewController to change the XML, parse again, and reload the table with the new info. What is the correct way of doing this? ...