xcode

Add new language to existing Xcode project localization

Hey guys, I'm working on an existing Xcode 3.2.2 Universal iPhone OS project which is already localized for 4 languages (EN, IT, DE and FR). We are now adding a new language (JA) into this project. Each existing .lproj folder (en.lproj, it.lproj, de.lproj and fr.lproj) has almost 60 files - including PNGs, HTMLs and the Localizable.str...

Preprocess strings file during Xcode build

Hello, I know there's a way to preprocess my info.plist file, but is there a similar way to process strings files inside my Settings.bundle? My problem: I have an iPhone app and I want the the user to know about the currently installed version. I do this by displaying it in the apps settings. Now every time i change the bundle version ...

How do I resize my view in horizontal orientation?

In portrait orientation my view is 744px in height. I want to change this height when it is in landscape view. How can I do this? ...

How to collapse all methods in XCode?

Hi! This is simple: Does anybody knows how to collapse all methods in a class in XCode? Collapsing one by one is not an option anymore =D Thanks and have a nice day! ...

CoreData RelationShips

Working environment: OS X 10.6.3, Xcode 3.2.1 Hi! I'm working on a project called Rent-a-Flick. The project has two entities: Movie and Client. Between them there's a many-to-many relationship. I have 2 tables: one with the movies and one with the clients. Their content is bound to the proper array controllers(for movie and client). I...

Alternatives to UIWebView for rich content?

In my app, I am displaying 4 "tabs", each are local content through a UIWebView. I create HTML markup from my simple data. This is slow to load and I'm trying to speed it up. I'm using UIWebView to accomplish these: 1. hyperlinks 2. some styling - font colors 3. HTML tables Writing my own class to handle this is okay for (1.) hyper...

iphone simulator resources not updating

My iPhone simulator refuses to update the resources which I edit. After doing a "Clean" and build, the new resources were installed. On the second run it reinstalled the old ones. I have no idea where it's getting them from. Any suggestions? ...

Searching in Xcode not finding results (searching my source)

I'm pulling my hair out on this and Google results are skewed since it thinks I want to find out how to code something. My problem is that when trying to search my code with the String Matching box it finds nothing, even if I enter something that is on the screen below. Is it Spotlight that is delivering these results? I'm not excludin...

How do I switch between Navigation Controllers?

Situation: I have an Xcode project based on the "Navigation-Based-Application" template. So that means I have a SINGLE UINavigationController that manages a UIViewController. What I want To Do: What I want to do is add one more UINavigationController to my project -- and be able to switch back and forth between them. (I want to do this...

How do I call a method of the app delegate from a UIViewController?

Situation: I am using the "Navigation Based Application" project template. And my root view controller (UIViewController) needs to call a method of the app delegate. Question: How do I call a method of the app delegate from a UIViewController? ...

Setting UIActivityIndicatorView while view is prepared

Hi, I have a UITabbBarController with a UITableView. Under certain circumstances the TabBarControllers dataset requires updating when a user arrives from another view, e.g. the initial load when the TabBarController is called the first time, or when the settings are changed. This dataset update takes about 2 seconds and I want to show ...

Dynamically calculate application load time

Hi again, How can I run a clock that allows me to measure the time to load until appDidFinishLaunching ? I want to set a sleep call that extends the Defaul.png show time to 3 seconds regardless the speed of the underlying hardware. ...

Taking random string from text file Cocoa?

Having troubles finding a good way to get a string from a text file (separated by line breaks) randomly. I want to do a setStringValue:@"random string from file here"; pretty much. Thanks in advance. ...

How to load a table view when coming to back with out selection index

Hellow all, I am using navigation controller and have table views inside views. when i select any cell it it will navigate to another view. so,from there if i click back button it come sto previous view.But,it showing the cell which is selected previously. I dnt want this .it should not show which cell we selected previously. Could any o...

Component source for the Mac world

Do you know of any source of paid code components or library for XCode and the Objective-C language like Component Source ? It's a website for paid libraries of code that you can use in your project. In the past, when my team was working on a C# project I used two of them, DevExpress and GraphicsMill: We found them really useful. Now I'm...

EXC_BAD_ACCESS when simply casting a pointer in Obj-C

Hi all, Frequent visitor but first post here on StackOverflow, I'm hoping that you guys might be able to help me out with this. I'm fairly new to Obj-C and XCode, and I'm faced with this really... weird... problem. Googling hasn't turned up anything whatsoever. Basically, I get an EXC_BAD_ACCESS signal on a line that doesn't do any dere...

Have xcode search regular include paths before my HEADER_SEARCH_PATHS

I need to force xcode/gcc to search the default system header search paths BEFORE searching my project HEADER_SEARCH_PATHS. Any idea how I can accomplish this? ...

Unrecognized input filetype FFMPEG gas-preprocessor.pl

Hi, I try to use FFMPEG in the iPhone, I follow by this link http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/076618.html When I running the ./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.2.1 --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/...

iPhone xcode - Best way to control audio from several view controllers

Hi, I am pretty new to iPhone programming. I have a navBar with three views. I need to control audio from all of the views. I only want one audio stream to play at a time. I was thinking that it would be smart to let my AppDelegate have an instance of my audioplaying class and let the three other views use that instance to control th...

release viewcontroller after presenting modally

I was watching CS193P Stanford course on Itunes, and in one of the lectures a demo was given and There it was said you could present the viewcontroller modally and then release it. Roughly like this (I know this isn't perfect but I'm on my PC atm) [self.view presentcontentmodally:myVC] [myVC release]; However this seems to produce pr...