xcode

xcode seems to ignore preprocesser flags

I've seen all the posts about setting preprocessor flags via the "Preprocessor Macros" setting. For some reason, Xcode seems to ignore my settings. I'm building an Xcode project that was created via CMake. Inside the Dependencies.cmake file, there are a few definitions added. For example: add_definitions(-DUSE_POCO) add_definitions...

Audiotoolbox Sound Volume Issue

I have some Audiotoolbox sounds. I created a sound in a UIViewController A. Using AudioServices functions, I play them, and it's fine. When I change the system sound volume via device (with my finger), the sound's volume behaves just fine and changes accordingly. But then I alloc another UIViewController B and add its view as a subvie...

deselect multiple files at once in Xcode

Though selecting multiple files to be included to the target build is easy (select multiple files, then just pressing space key), deselecting multiple files at once is painful work. Is there anyone who found the neat way to do that? ...

How to compile/include unrarsrc in an objective-c project?

I'm trying to replicate the unrar functionality in this project: http://github.com/tarasis/QuietUnrar But having trouble. I have copied the relevant files (/libunrar/,QuietUnrarAppDelegate.) into my project so I can turn QuietUnrarAppDelegate into a more generalised Unrar class, and immediately I run into problems. All the source files...

Adding Animation into a page on ScrollView

Hi, I have an animation (currently 30 different images repeating) and I wish to add it into a single page in a ScrollView (currently holding 7 pages). Can this be done? I've added my code below, the behaviour I'm getting is that on my selected page nothing appears, on all the other pages I get the images as normal, but there must be som...

Moving through JSON data in iPhone app

Hi all I'm afraid I'm a newbie to objective-c programming, and I am having a problem that I have spent all day trying to figure out and I cannot, so I am humbly asking you guys if anyone can help. I am trying to read the details from a JSON page online (for instance a local services directory) and have installed the JSON library into X...

Porting my Application from iPhone to iPad

I know there are multiple questions about this but I wish for this one to help my specifically with my application. Here is an overview on my application: I have a scrollview that holds a 7-page brochure. On one of the pages, there is an animation (a simple, cycling series of images). The images are currently 500x750 but the scrollview ...

how to read attributes of an element in xml file using objective c

hello everyone.In my application am getting an xml file from server and in that i have some attributes for the element.i donno how to read the attributes can anyone help me please.. ...

Is there a way to open my application on a specific tab upon receiving a push notification?

Title says it all ^^ Thanks in advance, Lewion ...

xCode Inellisense not showing up for UIPopoverController

Does anyone know why my xCode intellisense does not show up when I type in UIPopoverCont... ...

Access User-Defined Setting in Xcode

Hi everyone, If i added a user-defined setting in my build configuration, how can i read that setting in my objective-C files. I have two files in my project debug.plist and release.plist. I want my MainApp.m file to read one of these files based on which build configuration is running. I set up a user-defined setting named "filename" i...

Change color of image

IS it possible to change color of image from code ? ...

universal app -- Xcode keeps switching back to iPhone executable

I am working on a universal app. When I want to run it on the iPad simulator, I set the executable to the iPad version, and it runs on that simulator, no problem. But whenever I restart Xcode, or even just close and reopen the project, it switches back to the iPhone executable. I can switch it back again, but it's still annoying. Is ...

Cocoa app interface randomly "disconnecting" from program code

I have a multi-threaded Cocoa app that processes images. The program has a progress bar and some text showing how far along the process is. This all works great. However, sometimes the interface will just freeze up and everything will stop updating. The progress bar stops moving, and the text stops updating in the percentage counter. How...

Universal app iPhone or iPad

hello all, in my universal app i need to check in the ViewDidLoad if the iDevices is iPad or iPhone is there an method or code ? thanks ...

Change size of view

I put a button on view and want to call this view from another view and change size of this view but when i change size,size of button doesn't change How can i change size of view that size of all controls on view changed? Three *second = [[Three alloc] initWithNibName:@"Three" bundle:nil]; second.view.frame=CGRectMake(0, 0, 100, 100);...

How to change your XCode iTunes Connect login?

I am using several accounts to manage my customers iPhone/iPad applications. Therefore I need to connect to iTunes Connect with different logins. How can I change the login in XCode or Application Loader? It is always set to one default value that I probably entered the first time XCode was started. When it comes to validating or submit...

calling void function

hey all in my app i have this method -(void) Setinput:(int)input { //value declared in .h value = input; switch(value){ case(0) [b_do setTitle:@"Do" forState:(UIControlState )UIControlStateNormal]; [b_re setTitle:@"Re" forState:(UIControlState )UIControlStateNormal]; [b_me setTitle:@"Me" forState:(UIControlState...

Making an Array from a plist

Hi Guys, I'm trying to create an array out of the information inside a plist. My plist's root is of type array and inside this array is many dictionaries of data. Here is what I've been trying to do so far: //SET UP ARRAY OF PAGES NSString *path = [[NSBundle mainBundle] bundlePath]; NSString *finalPath = [path stringByAppendingPathC...

Shouldn't Xcode/gdb load the ~/.gdbinit file on launch?

I have a ~/.gdbinit file which is loosely based on http://stackoverflow.com/questions/1237830/how-do-i-set-these-break-points-in-gdbinit. Allegedly, gdb is supposed to source ~/.gdbinit when it launches. However, it's not loading mine - I have to stop at an existing breakpoint and type in 'source ~/.gdbinit', and then it loads it. Is ...