xcode

Xode build warning and "method not found in protocol" when method signature does exist

When I try to invoke an instance of a class that implements a particular protocol, I get warnings about the method not being found in the protocol's signature. warning: '-requestCompleted:requestType:' not found in protocol(s) warning: 'NSObject' may not respond to '-requestCompleted:requestType:' I couldn't see the reason...

Interface Builder won't let me double click on any objects in my .xib

Ok, I'm fairly new to Xcode, and I've created a few sample projects and added an Object from the Library into the document window, but when I double click on it to open the Inspector it beeps and won't open it. This used to work just fine, double clicking objects to open the inspector, now all of a sudden it doesn't work anymore. I resta...

Git Merging of Binary Files (in particular Xcode project files)

I've got an Xcode project under git and I've got a "experimental" branch off of my "master" branch. Both branches have diverged since the branch (so no fast-forwarding!), and I am merging "experimental" into my "master" branch. I've setup a .gitattributes file to treat a particular Xcode file (project.pbxproj) as binary, as it should be...

Share the image on flickr

Hi All, I am developing a application where i want to load the images on flickr.I have seen the Snap and Run project where i tried to share the image using my API key but cannot do it. Can anyone help me with this as I am not able to do this,, Thanks in advance, ...

XCode iPhone: hiding UIToolbar in parent UIViewController from child UIScrollView

I have a project similar to Apple's PageControl example. I have a UIViewController "PhotoViewController" which contains a UIScrollView and a UIToolbar. The UIScrollView loads another XIB and UIViewController "PhotoScrollViewController". In PhotoScrollViewController, I have a UIButton which displays an image. I have an IBAction on thi...

Guides, Tutorials or Books about building MacOSX GUI apps with C++ in Xcode?

Hi, with GUI apps I mean not just a Unix command line application, but the whole .app bundle and a full Cocoa or Carbon application. Thanks! PS: I wasn't totally accurate with GUI application. I meant an application with a window and a menu, as opposed to a Unix command line application. Actually I got to a tutorial about programming wi...

How to refer to an object instance created/instantiated in interface builder?

When working in interface builder you can layout your interface with different types of objects but I'm unclear as to whether these are instances of objects or some sort of factory method or something like that. Basically if you use Interface builder to layout your objects, especially with subclasses of uiview, how do you refer to a spec...

Target Membership grayed out ( disabled )

I'm trying to create a new unit test build target for my iphone app. The problem I'm running into is that my source code "group"'s Target Membership options are grayed out. I did delete the original "Classes" folder, and created new "SourceCode" folder with an actual disk structure (thanks xcode). I imported it as a group, not a folde...

Objective-C Unit Tests cannot find my resources

When i run unit tests it fails on loading external resources (images) with the same error as if they don't exist. In xcode i have added the resources to the unit test target. I don't know what to try next. I am using the Cocos2d framework, I try to load the following code within a unit test AtlasSpriteManager *at = [AtlasSpriteManage...

Geolocation based push notification

I'd like to push an alert to my iPhone users that are within a geographic range. I can get their location when my app is "alive," but not otherwise. Would a good approach be: send the localized alert based on users that appeared "in-range" in the last hour? Otherwise, I'm not sure how to only alert relevant users. Is there a smarter appr...

Device debug works but not release

I'm trying to troubleshoot why a release build doesn't work on the device but a debug version does. With a release build, the app starts, default PNG displays and the app dies. I've commented everything out of applicationDidFinishLaunching, which means it isn't a code issue. I see this error in the console: Mon Jan 18 21:17:39 unknow...

Is there any reason to build for LCD?

If I can do everything I need to with iPhone SDK 3.0, is there any reason to build for 3.1.2? 3.0 still runs on 3.1.2 devices but not the other way around right? ...

When to use static string vs. #define

Hi all. I am a little confused as to when it's best to use: static NSString *AppQuitGracefullyKey = @"AppQuitGracefully"; instead of #define AppQuitGracefullyKey @"AppQuitGracefully" I've seen questions like this for C or C++, and I think what's different here is that this is specifically for Objective C, utilizing an object, a...

g++ and file read, weird behaviour with xcode/snow leopard

Hi, I am writing a program that reads a file, whose first two lines are: Field of space: 0.4 226981 20 Then I want to pass 226981 and 20 to integer variables. So I do: ifstream vfile(file_name, ios::in); vfile.getline(header,FILENAME); // Read the header-line vfile >> nTot >> file_size; If I compile the program wit...

Increase stack size with XCode

I developed a command line application on Linux which needs its stack to be increased. On Linux I just used the workaround: ulimit -s unlimited before running the program. On Mac OS X, command line with G++, I add to the compilation options: -Wl,-stack_size,0x10000000 and it works. Now I am developing this program with XCODE, where s...

Clean build in Xcode / Snow Leopard

Hi, I am new to OSX and stsarting to use XCode. Here I found the clean build options when working on my C++ project, but both are disabled, how can I use or activate them? Thanks ...

Xcode makefile or compilation options

Hi, I am new to Xcode. Once I configure my C++ command line application to build, and it builds successfully, I have sometimes no clue about how Xcode calls GNU C++. Is it possible to get the makefile that Xcode creates or how to see the compilation options created by Xcode? Thanks ...

Xcode - how to include c library and header file to cocoa project?

How do I add c library to Xcode Cocoa project? Or what is the best option, I don't want to copy them into Cocoa project directory. I have a C project called a which compiles into library a.dylib and header file a.h, the project is located in it's own directory. I want to use this library from my objective-c application in Xcode. How ...

dylib @executable_path path issue in a plug-in bundle

Hi, I am developing a plug-in bundle, say MyPlugIn.bundle for an application, say BigApp.app. This bundle requires a dylib, say MyPlugIn.bundle/Contents/Resources/library.dylib. I have relocated paths for library.dylib, as I would have done for a simple application bundle: $ otool -L MyPlugIn.bundle/Contents/MacOS/MyPlugIn MyPlugIn.bun...

UINavigationController template

When I open the new file dialog I see only 3 Cocoa Touch Classes: Objective-C class, Objective-C test case class, UIViewController subclass. When I last worked with Xcode, before I updated it, I remember there were more than 3 options, which included what I'm looking for: UINavigationController. So where can I find this template to crea...