xcode

Sharing classes between projects in xcode/objective-c

Hey folks, I've got a client<=>server app I'm building for Mac OS X, using Objective-c/Cocoa and xCode. I've created a different project for both the apps I have, and I'm wondering the best way to share classes between them. There are several classes I've made that would be useful to both. This far I've been copying them around, but I f...

XCode + svn tips, tricks, etc

Hi, I'm curious to know your tips and tricks using XCode and Subversion. Not necessarily only focused on actions that can be done to a svn repo from xcode itself - but what things have you done to make your life easier when working with a svn managed folder that contains an xcode project? What files did you ignore? Any custom built scrip...

iphone textfield focus clears the value

Hi, I have 4 textfields in a screen. Consider all textfields have some text in it. When i focus/ click on any textfield the value previously entered in the textfield disappears. How can I restrict this behavior? Any ideas? Thanks, TF ...

Including a debug build in a library's Mac OS X SDK

As I'm sure you're aware it's common to include both debug and release builds of libraries in their SDKs. My question is whether there exists a standard way of going about this for a Mac OS X framework in terms of distribution and possibly Xcode integration? One option is to ship a second entirely separate framework, e.g. MyLibrary.fram...

Open UIPickerView by clicking on an entry in the app's preferences - How to?

Hey, I am wondering how and whether the UIPickerView can be opened due to the user's pushing of an entry in the app's preference pane. Thank you ! I am speaking about iPhone Development. ...

IBPlugin and paths to framework

IBCocoaSimulator crashes when IB cannot find the framework, I assume that happens to you too. I can run IBCocoaSimulator without crash, when I manually copy my framework+ibplugin from the build dir into /Users/username/Library/Frameworks. I'm doing this with Finder, this is not optimal, but works. I have searched for a smarter way and ...

How to use an image taken in the 1stViewController in the 2ndViewController?

The user can choose whether he wants to use an existing image or take a new one for use as the background. Everything works as far as the FirstViewController is concerned. Sadly the image is no longer set as the background when the SecondViewController is displayed. How do I enable the use of the image as background for the SecondView...

view all the subclass of UIView or NSObject

You can view the Java API in tree structure. So you can view all the subclasses of Object. How would I view all the subclasses of UIView or NSObject IPhone Cocoa API? I just found out you can do this: self.tableView.tableHeaderView = searchBar; searchBar is subclass of UIView. I want to add a textField to a tableView. I wonder if ...

documentation references from xcode

As someone new to C and iPhone development, I'm making lots of use of the documentation. The "doc sets" pull down has only "iPhone OS3.1" library selected. However, sometimes when I highlight text in my source - eg "sqrt", right click, and choose "find text in documentation" I get a bunch of "Mac OSX Manual Page" hits, with pages title...

CoreData (for iphone) storing images

i wonder if its a wise choice to store images with core data into binary property say i have a collection of movies and i want to save the image dvd cover into a property the avg size of a cover is 20/30kb (320x480px) the reason i want to do this is for storage management, once i delete the movie i know the image is also deleted i'm j...

Xcode Tips for Eclipse users?

Hi, I've been slowly working my way through the examples in Beginning iPhone Development and there are a few things that I have not been able to figure out, but I'm sure you guys can help me with it. In Eclipse there is a Source->Generate Getters/Setters, can you do something similar to synthesize properties in Xcode I also cannot see...

Does Clang-LLVM work for iPhone?

I am currently using Xcode 3.2.1 for learning the iPhone SDK and was wondering if its possible to use the Clang-LLVM and the static-analyser to aid in debugging my code. Currently I am using the default templates, but swapping the compiler in project>settings gives me errors when compiling for the simulator. Is this possible? gary ...

Xcode project reference problem - [NSObject doesNotRecognizeSelector]

Hi, I have a working iPhone project that I'm trying to rearrange on different projects in order to reuse code. I opened a new project that contains all my utility classes and referenced them from another project. One of the utilities I use is the JSON framework. The project complies OK but at run-time it throws an exception when I'm tryi...

Is there a way to change the height of a UIToolbar?

I've got a UIToolbar in Interface Builder and I've noticed that it's locked to being 44px tall. Ideally I'd like to make this larger. Do Apple allow resizing of this control? and if so, how do I go about it? ...

Why can't I see a Managed Object Class file template in Xcode?

I created a .xcdatamodel Managed Object Model file in Xcode. I selected that file in Groups & Files. Then I go to File > New... > and nowhere in the iPhone Templates / Cocoa Touch Class templates I see the "Managed Object Class" file template. Does anyone know what can be wrong? ...

Why do I get this error "error: expected specifier-qualifier-list before 'NSManagedObjectContext' ?

1) I have the CoreData.framework imported. In Groups & Files I see it in the Framworks list together with UIKit.framework, Foundation.framework, CoreGraphics.framework. 2) I have this code, which should actually work. Don't know what that error means... #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface RootViewC...

xcode "compile source as" override for specific file

Hello, I have a project that has to be set to "Objective-C++" for the "compile source as" value (no, "according to file type" will not work in my main project). I am having a problem with a file I got from a framework (specifically OpenFeint) that has compile errors when compiled as "Objective-C++". error: pointer of type 'void *' used...

iPhone View-Based Application Doesn't Have Core Data?

In Xcode, I'd like to go File -> New Project -> and pick View Based Application. But it doesn't have the "Use core data for storage" (like some of the other projects). So I can't assign a core data to it. I'd like to know if this is an issue, and what's the best route to take for what I'm trying to do? (Which is build a core data based...

iPhone Library not loading (not linking)

Hi, I'm working on an iPhone application and I'd like to use the XFSM libraries (see http://fsmbook.com for info) for interacting with finite-state machines. Anyway, I included the two libraries into my program using "add existing frameworks" but when I compile I get the error: dyld: Library not loaded: libbreadline.dylib Refere...

Xcode: code loses syntax coloring

I find that in various situations Objective-C code in Xcode 3.1 (Leopard) can fail to get appropriate syntax coloring after typing or lose coloring that it had. This isn't just a "refresh" issue with new custom symbols -- but affects Cocoa framework symbols as well. Sometimes CMD-a to select all text on the code page will make the colo...