xcode

XCode 4 and launching on a device

Hi all, I've asked this on the XCode 4 forums, but thought I'd ask here to. I can run my application in the simulator, launching it from XCode 4 (latest Pre-release). But if I switch to trying to run on a device, it fails to install it or run it and there are no messages in the console log or device log. I'm at a loss as to what is goi...

Creating a library (.a) in Mac OS X and Xcode

I'm in the process of porting some code from Linux to Mac OS X. The code is a static library that you add to your code. Basically after you compile the code you get a MyLib.a that can be linked to whatever project you want. I'm managing the "project" via a Makefile. Is there a way to have a project on Xcode that ultimately produces the ...

updated to iOS4.1 and iAd "test advertisment" not showing up on simulator

Hello, I added the iAd as written in tutorials and in my app it always calls didFailToReceiveAdWithError. bannerViewDidLoadAd is never invoked. I know I'm supposed to see a "test advertisment" Ad, but nothing shows up, because the function bannerViewDidLoadAd is never being invoked. I've looked into other questions, but didn't find an a...

Synthesize property errors when compiling iPhone app.

I am following the tutotial on Apple's website for building your first iPhone application, as this is a field i would like to be involved in. I completed the app, but then decided to merge it with another app. (One simply changes an image when tapped, one displays text from a text box when a button is tapped, so not too tricky to combi...

counting the number of .plist files in xcode

In xcode, I have many .plist files called : ImageData1.plist, ImageData2.plist ... etc how can I get the number of .plist files which start with the name "ImageData" ? ...

Interface Bulder and XCode: change color of a view "top bar"

Hi, I have a couple of views in my iPhone app. each view shows a "top bar" in blue, I haven't added a "Navigation Bar", simply edited what's on the inspector "View Controller" section and gave it a title. (this section: http://img69.imageshack.us/i/schermata20101001a22014.png/) Is it possible to change the color of this bar that'a autom...

What is the proper way to declare a function for use, from a 3rd party class?

I'm trying to utilize a class from the Google Toolbox for Mac libraries, for unescaping HTML text. Specifically, I'm using GTMNSString+HTML.h and GTMNSString+HTML.m. Where I'm trying to escape the text, I'm doing this: NSString *escaped = [ gtm_stringByEscapingForHTML:_item.body ]; But when I try to compile I'm getting an error: 'gt...

Error message: start in crt1.10.6.o ld: symbol(s) not found collect2: ld returned 1 exit status

Hi, I'm a beginner in C++ programming and I keep getting this error message. I have no idea what it means...I'm using XCode for Macs version 3.2.4, 64-bit. Could someone tell me what this means? the error message is: start in crt1.10.6.o ld: symbol(s) not found collect2: ld returned 1 exit status If you need a look at my program, he...

Universal iPhone/iPad AppDelegate

Hi everyone, I was wondering if anyone would be able to tell me, starting a new app from scratch, how would I organise having a universal (iPhone/iPad) iOS app. I noticed using the default template with the xCode Beta, it gives you both a shared AppDelegate and subclassed appdelegates for iPhone and iPad. Now, how do you put in the log...

Drawing a smaller texture on a larger OpenGL texture on iPhone

I am very new to OpenGL and this is what my goal is... Load a texture from an image. Load another texture which is much smaller than the first one. Now keep drawing the smaller texture on the larger one on some chain of events, like painting on the larger texture. Can somebody point me to some material which might help do this? I lo...

Dynamic Sections UITableView with Unknown cells

Hey, I'm basically trying to retrieve data from SQlite db and populate a tableView from it. The sql-data-retrieval method creates two arrays. "dataArray" and "SectionArray". DataArray is filled with data NSObjects. Uptil this point, i can create the appropriate Section headers. Here is the problem, -1 What do i do to make sure th...

Images in iPhone app appear in Simulatpor, but not when compiled to device.

I am learning iPhone development, and have built a simple app that has an image that changes to another image when you tap it. If i build it to the simulator, it works fine, but if i build it to the device the images dont appear. i feel like they aren't being copied across. I have checked they have been named correctly and i have made s...

custom UISegmentedControl

I use below code for change image of each segment in segmentedControl but doesn't work How to do it? First way: [seg setImage:[UIImage imageNamed:@"1.png"] forSegmentAtIndex:0]; [seg setImage:[UIImage imageNamed:@"2.png"] forSegmentAtIndex:1]; Second way: [seg insertSegmentWithImage:[UIImage imageNamed:@"1.png"] atIndex:0 animate...

downloading files to iphone app from apple store

My application is somehowe a library, represented by a UITableView, each row displays three book icons, pressing on any icon would cause the app to navigate to a scrollview that scrolls between the book pages. Each book is represented in the resources directory by two things : 1- a .plist file, eg : Book1.plist 2- a folder containing i...

Grasping the concept of UIviews and UIViewcontrollers

A couple of weeks ago i have started my research in Iphone app development and after alot of hello world applications in different settings i am now ready for my very first application based on the MVC design pattern used in Cocoa. This opens up alot of questions for me though and after reading the different class references about UIVie...

how to find string length using strlen in objective c

i have a string strored in str variable i want to find string length which is available in str variable i hav tried with strlen(str); its not working... ...

Good resources to learn MacRuby

I do not know Ruby and I am interested to learn MacRuby. What would you recommend as your best resource (books, blogs, sites) to learn MacRuby? Found:http://www.macruby.org/ ...

AVCapture appendSampleBuffer

Hello all, I am going insane with this one - have looked everywhere and tried anything and everything I can thinks of. Am making an iPhone app that uses AVFoundation - specifically AVCapture to capture video using the iPhone camera. I need to have a custom image that is overlayed on the video feed included in the recording. So far I ...

how to use navigation controller in detail view of split view application for ipad

i am now displaying some table view in root view and detail view now i want to navigate to next view from detail view when a row get selected in detail view ... how to create navigation controller in split view and loading the detail view Thanks in advance.. ...

What's the most fun: AS3/Flash or ObjC/Cocoa/XCode ?

It's a question for people who know both AS3 & ObjC. I know a little bit of both, but can't decide which would be the easiest language to learn & the most fun to use on a professional level. And why? Fun as in, most exciting & most interesting. ...