xcode

Best practice for PNG optimization?

I 'd like to prepare my PNGs for the best optimization, so I can get the best image quality (lossless if possible) and the smallest size. From what I understand, I should use: PNG, 72 dpi, RGB, but what else? Here is what we find in the iPhone HIG: Note:*The standard bit depth for icons and images is 24 bits (8 bits each for red, gree...

Help with using Xcode

So, I'm using Xcode to program with C++. I want to access the C++ tool but I'm having this problem. This is what it looks like when opening a new project. Only for me, I don't have the 'Command Line Utility' option at the end. How can I get the 'Command Line Utility' option to be available. I need it to access the C++ tool. Please...

C++ and Objective C in Xcode project

I have recently updated Xcode to version Version 3.2.2 (Pre-release). It is working fine with old Objective-C projects but I experience some problems with projects which have mix of Objective-C/Objective-C++ code. During the compilation I am getting the following error: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.s...

Xcode - How do I get back the find/replace on top of the coding window?

When you pressed CMD F on older versions of Xcode you got the find/replace window embedded on the coding window, instead of having a separate window floating around. In Xcode 3.1.4, I have this annoying floating window. Is there a way to get back the old and good find/replace box embedded on the coding window on this new release of Xc...

Easy custom UITableView drawing

All, I found the code in Matt Gallagher site ( http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html ) for this really neat design for a Table View... Im very new to Cocoa and Im having a hard time figuring out how to wire the darn thing in IB... I loved the design and wanted to use something similar in a more compl...

Xcode organization in finder?

hi...I have read all the suggested StackOverflow posts on this question. It bothers me that Xcode will not organize my files in the finder the same way it does in the editor view...it will only do that if I copy files in from an external source and specifically tell it how I want things organized. Is there a way to make Xcode have the Fi...

Is there an iPhone Checkbox List Control thats not listed in Google or SO?

I have a demo working but I was wondering if there is already a library like Three20 that comes with this sort of control. This is what I have till now. It's not refactored yet. - (void)viewDidLoad { [super viewDidLoad]; // Gets Types [self getTypes]; // Set Guilt Types UI CGFloat kTopMargin = 160.0; CGFloat kTopMarginSpan...

How to structure the code for a Cocoa Application

I'm writing a Cocoa application where I have an auto generated app delegate:(MyAppDelegate.h/MyAppDelegate.m) So I am not sure of the best way to structure the class files for this Cocoa application. I understand MVC thoroughly (on the iPhone) but I'm having a block as to try organising the source properly in a Cocoa app. I need to spa...

Analyzer marks a potential leak for this construct

With the following code the analyzer marks the setMyDict selector call as a potential leak and in dealloc it states "Incorrect decrement of the reference count is not owned at this point by the caller" - (id)init { if (self = [super init]) { [self setMyDict:[[NSMutableDictionary alloc] init]]; } return self; } - (void)deall...

activity indicator start at the end of loading ...

what's wrong with my code? i want spinner indicator start when view1.nib start to load. so i put [spinner startAnimating]; in - (void)viewDidLoad . but it will get that url then start spinner indicator... - (void)viewDidLoad { [spinner startAnimating]; NSURL *originalUrl=[NSURL URLWithString:@"http://example.com/"]; NSDat...

Xcode Build Options, etc. Tutorial

I've worked on a few projects now, and I've had to change the framework search paths, set the bundle loader, etc. But I've never felt totally comfortable with that Project (or Target) "Get Info" window. I still don't know what half the stuff in there is, and whenever I change anything, there's always a bit of finger-crossing when I clic...

iPhone - Debugging EXC_BAD_ACCESS crashes

From times to times, while debugging an Application, I see this error on Xcode: Program received signal: “EXC_BAD_ACCESS”. and the debugger does not stop on the problematic line. In fact the debugger just shows me a page with a bunch assembly language code and that's it. I have to have paranormal powers to figure out where the exact ...

misaligned_stack_error after moving some code into external framework (Cocoa)

I just moved a bunch of code into a separate framework. Nothing has changed in the code since the move and it compiles fine. However, on runtime, It crashes with "misaligned_stack_error". I've been looking around and some people are saying -mstackrealign fixes it, however I have added it to the C flags for both projects in Xcode and it s...

Turn off "stop executable" dialog in xcode when running app?

The "stop executable" dialog that comes up every time I have an app already running in xcode and rebuild and run is really annoying me. Is it possible to turn this off and auto-stop any running apps? Thanks ...

applicationWillTerminate with mutliple views

I am trying to save my data from a view that was loaded on applicationWillTerminate but am running into a few problems. I have four views: inFinateViewController FirestViewController SecondViewController ThirdViewController I am loading my views from like this (thanks to Mauricio Giraldo code) via the infinateViewController: - (void) ...

Problems with empty table view

Hi, im trying to write an app that will display a list off lines from a book e.g line 1, line 2 in a table view and you can then select a line to view the corrosponding text. I've got to the stage where the text should at least appear in the table view(not as far as being able to select it), yet it remains empty. I used the debugger a...

Xcode newb -- #include can't find my file

I'm trying to get a third party audio library (STK) working inside Xcode. Along with the standard .h files, many of the implementation files include a file called SKINI.msg. SKINI.msg is in the same directory as all of the header files. The header files are getting included fine, but the compiler complains that it can't find SKINI.msg. W...

Customizing File Linkage for a Build Configuration (Not Buil Target)

I have a project that has several build configurations (FREE version, male-only, female-only, etc.). I am avoiding using multiple build targets because (A) the products are mostly all the same and (B) I don't want to have to do checkbox-management to keep every file I have included with all the targets. However, I have just a few files...

OBJ-C: Call an instance of core-plot graph from separate view controller

I'm using a view controller i.e. ViewController:UIViewController and have another class GraphViewController:UIViewController . How do I call an instance of GraphViewController and place it into my ViewController? I am currently trying to call the plot within my ViewController directly, but I want to make the graph modular so I don't hav...

Resources check

hey I am frequently uploading my XCode iPhone projects to an svn repository to be build on another machine. My problem is that when I add resources to my project sometimes I forget to add the resource as relative to the project. I know one answer is to be more careful (not easy when your tired!) but if there was a way to run a script t...