xcode

How to change localization after an iPad app has been started

Hello, i am currently working on an iPad app (iOS SDK v3.2). The app is localized in several languages, i.e. english, german, russian, ... I want the user to be able to switch the localization for some UI elements after the app has been started. What is the best way to achieve this? NSLocalizedString always chooses the locale defined i...

How to encode hebrew string (NSString) into a Unicode format in order to send as a URL in Objective-C

The title pretty much sums it up. I have a hebrew-containing String used in a NSUrl: NSString * urlS = @"http://irrelevanttoyourinterests/some.aspx?foo=bar&this=that&Text=תל אביב" I would like to convert in into: Text=%u05EA%u05DC%20%u05D0%u05d1%u05d9%u05d1 and then send it as a GET request. I have tried many encoding metho...

Xcode debugger: Break anywhere in my code following a given line of code

I have a given line of code, after which none of my own code lines should get executed (not in the same "event loop"). How do I configure the Xcode debugger to catch instances in which some of my own code indeed does get executed after this given line of code? If it's not possible to filter by the "event loop", can I filter it down to,...

not able to connect view controoller to appdelegate in main window nib

i have added an view controler to interface builder and trying to add connection but is not allowing to connect, buti have created ib outlet for that and is visible in IB... ...

How can I isolate third-parties' C/C++/ObjC libraries' symbols from each other?

I have a project that needs to incorporate two third-party libraries, libA and libB. I have little, if any, influence over the third-party libraries. The problem being is that both libA and libB include different versions of a common library, ASIHTTPRequest. As a result, I'm getting errors like: -[ASIFormDataRequest setNumberOfTimesToRe...

Updating UI Manually

Hi, Is there a way to update UI manually? For example, I have a function which updates UI and execute some logic. After the UI update, it will execute some logic that will take a long time and update of UI has to be wait until the execution of logic is finished. Is there a way to update UI manually befor even the logic is even executed?...

fix code indentation in xcode

once I start editing my code and adding for loops or if then statements my code indentation is whacked because the previous code maintains it's former indentation instead of adjusting automatically. In visual studio you can highlight code and select 'format selection' to fix these issues - is there anything similar in xCode? ...

iPhone Scrollview question?

Is there a way to hide the scroll bar in a scroll view? ...

Link to iTunes Ratings Page

What's the link to the ratings page on iTunes for my app? [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"???"]]; ...

How do I change what version of GCC Xcode uses?

Currently, I am trying to compile Imprudence, a third party viewer for the Linden-Lab owned Second Life. I have gotten everything set up and I am now in Xcode. When I click on the Build And Run button, I get an error after a little bit stating that GCC 4.2 is not compatible with the Mac OS X 10.4 SDK. I have tried changing the Active Ar...

Custom keyboard in iphone

Hello, Does any one know how to Create custom keyboard in iphone? Pls give me any samples for custom keyboard ...

iphone : SDK disclosure button not response from first TableView to second detail TableView ?

How can I pass the first tableview row data to second detail view row I use [cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton]; or cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; to show up disclosure button in each cells it can ,I also add actions in - (void)tableView:(UITableView *)tableV...

Dragging pasteboard is nil when remote debugging from Xcode

I'm writing an app that needs to work in both 10.5 and 10.6 (We still have PPC machines). My development machine is 10.6.4 with Xcode 3.2.3, and I have a 10.5.8 machine with Xcode 3.1.2 on it. I use remote debugging to test out the app on the 10.5.8 machine, and I've run into a problem with a Drag and Drop method that only occurs when r...

UIBackgroundModes key not showing in Info.plist dropdown

I am trying to upgrade an older iPhone project to adopt background audio streaming, however the "Required background modes" key is not showing up in the Info.plist drop-down menu. I have set the base SDK to 4.0. Is there another project setting that governs which Info.plist keys are available? Kind regards, Rob ...

Xcode Delete File Dialog

Whenever I delete a file in xcode, it normally automatically deletes the reference only, and leaves the real file intact on the hard drive. Sometimes though, when I delete files straight after I create them from a template, a more extensive window appears asking me if I want to delete the reference or the file itself & references. Does...

Where is the basic Control-TAB (MRU) behavior in XCode?

In most multi-document editors for windowing environments, Control-TAB will utilize an MRU list to bring the user back to the last visible file. What is the appropriate command to accomplish this in XCode 3.x? I currently have Ctrl-TAB mapped to "View|Previous File", however this does not appear to be an MRU. Worse yet, if it hits the ...

How do I use Mogenerator?

I installed Mogenerator. Now what do I do? How do I use it? The first problem I have is that I have no idea where it was installed to. During the install process, it only let me select the hard drive to install it on, not the directory. The most natural location would be the Applications folder, but it isn't there. Next, the readme (wh...

adding new TableViewCell only at the last row of a table.

Hi, I've tried looking it up here... but could see more questions like that one, but no answers. I'm trying to add a new cell at the bottom of my table (add 1 more cell to the end) the cell should be different from the rest of the table cells, so I've created a new NIB with tableCell. i've used this way to find the last cell in my tab...

Changing default parameters of Mogenerator

I'm trying to make Core Data objects inherit from my own custom class rather than NSManagedObject. I started using Mogenerator and noticed that it has a --base-class arugument which does exactly what I want. The problem is that by default it doesn't use this parameter, and so every time I save my data model file, it sets the inherited c...

Check for collision of ball in a circular path and a stationary object on the path for iPhone app

I have set a ball on a circular path by animating its layer. When i checked for collision with another object, I tried use CGRectIntersectsRect but to no avail. What is the difference between a layer and the frame? I suspect that the frame is not following the layer animation hence CGRectIntersectsRect is not something that I should be ...