xcode

Cocoa framework development: sharing between projects

I am currently developing a handful of similar Cocoa desktop apps. In an effort to share code between them, I have identified a set of core classes and functions that can be common across all of these applications. I would like to bundle this common code into a framework which all of my current applications (and any future ones) can link...

Encrypting passwords.

My iphone application wants to connect to server by giving username and password. How can I send this password securely. Anyone please help. I am a beginner. ...

How to static analyze C++ and Objective-C++ code?

The "Build and analyze" option doesn't seem to work for .cpp and .mm files. I tried "clang --analyze" on individual files without any standard #includes and it works well. However I'm not able to run it on my Xcode project. I couldn't figure out a way to make clang find the standard #includes like even UIKit.h. Any clues? ...

Does MapKit allow for StreetView?

Can I use Google Map's Streetview inside my apps? ...

Objective-C: making documentation

Hello. I've been developing for Visual Studio and C# for a long time. Now, I'm developing with XCode and Objective-C. On C# I can use /// <summary> to generate documentation. Is there any kind of mechanism like that on XCode to generate documentation? And what kind of comments should I use? Thank you. ...

App not installed...because its resources have been modified

One user cannot install my app because they continue to receive the error: The application “myapp” was not installed on the iPhone “myPhone” because its resources have been modified I've read the error occurs because of adding files after the app is built. I have not added any files. Last week, the user could install the ad hoc with...

Adhoc Distribution iPhone Application !

Hi, When i click on the grey large button on xcode ( which we use to switch between simulator and device options ) . It doesnt have the distribution option. It only has debug and release options. Can anybody tell me wats wrong ? ...

MKPinAnnotationView in iphone Applications?

Hi, I developed an application related with google maps in iphone, here i want callout without tapping pin,means when pin shows in the map itself it will show the callout.I tried with MKPinAnnotationView..but it is not showing.. could any one suggest me how to show call out without tapping the pin in MKMapView; Thanks & Regards ...

[XCode] How to reference files with environment variables ?

Hi, I was wondering if someone manage to reference files (except headers or lib) with an environment variable in XCode (mine : v3.2.1) ? There are settings that specify search paths for headers (HEADER_SEARCH_PATHS), libs (LIBRARY_SEARCH_PATHS), and even Carbon Resource (REZ_SEARCH_PATH). But how can I reference other file types for re...

GCC compiler -- bug or unspecified behavior?

When I have conflicting definitions of the ivars of a class in objective-c (not redeclaring the class in the same file, but rather naming the same class with diff ivars, no warnings or better yet errors are issued by the compiler. However, both sets of ivars are useable by the appropriate methods in the respective files. For instance ...

XCode not saving file associations

I go to xcode>preferences>file_types, change association for file type "xyz", click apply+ok, reopen xcode>preferences>file_types, check association for file type "xyz", its set as I just edited it. Not I quit xcode, start it again, xcode>preferences>file_types, check association for file type "xyz", and its getting reset to its old val...

Objective C Naming Convention for an object that owns itself

With the latest releases of XCode that contain static analyzers, some of my objects are throwing getting analyzer issues reported. Specifically, I have an object that owns itself and is responsible for releasing itself, but should also be returned to the caller and possibly retained there manually. If I have a method like + (Foo) newFo...

TeamCity Xcode Build Runner Configuration (Command Line)

I'm trying to setup a continuous build server with TeamCity and configure it so it can run "xcodebuild -configuration release -sdk iphoneos3.0 clean build". i installed the plugin for teamcity-xcode integration and for the 'Build Runner' settings, i set it up as Build Runner: Command Line Command Executable: xcodebuild -configuration...

How to set background color of tableView

Hi Folks, I have tried all the way but could not succeed to set backgroundColor of TableView. setting tableView.backgroundColor and/or cell.backgroundColor to clearColor didn't work when the parent view controller was UIViewContoller. My nib file structure is FileOwner View UITableView (Note: i set the TableView to groupedTable secti...

Load a file in a group objective-c Xcode

I'd like to load a file from a specific Group in Xcode/Objective-c for example: I have TWO files named "SomeFile.txt" that are in two different folders (folders not groups yet) in the OS: SomeFolderOne |- SomeFile.txt SomeFolderTwo |- SomeFile.txt Inner Xcode I make two folders, and I put a REFERENCE to these two files: SomeGroupOn...

C, Objective-C preprocessor output

Is there a way to get pre-processed C/Objective-C code? I have some files I acquired and would like to see the code produced by some #defines. ...

Why doesn't the SplitView iPhone template have a nib file for the RootView?

I'm diving into iPad development and am learning a lot quickly, but everywhere I look, I have questions. After creating a new SplitView app in Xcode using the template, it generates the AppDelegate class, RootViewController class, and DetailViewController class. Along with that, it creates a .xib files for MainWinow.xib and DetailView....

How do I add a custom view to iPhone app's UI?

I'm diving into iPad development and I'm still learning how everything works together. I understand how to add standard view (i.e. buttons, tableviews, datepicker, etc.) to my UI using both Xcode and Interface Builder, but now I'm trying to add a custom calendar control (TapkuLibrary) to the left window in my UISplitView application whi...

Using a C file in an xcode/objective-c project

I am making an iPhone app. I have a code that is in C. The C code contains a lot of pointers and global variables. I want to use this C code in my objective-c project. Can anybody please help me with this? ...

In the iPad SplitView template, where's the code that specifies which views are to be used in the SplitView?

In the iPad Programming Guide, it gives the following code example for specifying the two views (firstVC and secondVC) that will be used in the SplitView... - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MyFirstViewController* firstVC = [[[MyFirstViewController alloc] ...