xcode

xib file shows in wrong target

Hello all, I am new to using multiple targets in a xcode project and have hit a snag that I can't find an answer for. I have a project with two targets. One target does not have a user interface and the second target contains a user interface for administration. The problem that I am having is when I build and run the first target witho...

iOS linking to "ABAddressBook.h"

Hello all, So I suspect this to be a project problem as opposed to a code problem. I am still relatively new to xcode. I am trying to access the ABAddressBook libraries and have included them in the project alright. ![alt text][1][1]: http://i.imgur.com/lBaW0.png Now when I try to say import "ABAddressBook.h", it doesn't know what I...

HELP! Instruments won't start

Instruments is failing to start on my iPad and iPhone. Both are correctly provisioned and I can debug code on them from xcode with no problems, but Instruments fails to start. All I get is a beep. I looked in the Mac Console logs and I see several of these: 8/18/10 5:46:27 PM Instruments[1406] -[NSCFArray length]: unrecognized select...

NSString alloc/init generates 'Redefinition of myStr' error.... ???

Howdy all, I seem to be generating a lot of questions with this one little iPhone app.... I am attempting to stuff an NSMutableArray with NSStrings, and I am working like this: ... NSString *myStr = [[NSString alloc] initWithString:@"Jupiter II"]; [txtArray addObject: myStr]; [myStr release]; NSString *myStr = [[NSString alloc] init...

navigaton problem

Hi, i would like to check, usually for navigation base app. we load the nib files for navigated views at viewDidLoad right? than the nib file will be the place where we define the class. so what happen if there is no nib file? and if i have a custom table cell, with no nib file for table view, but a individual cell nib file only, how c...

XCode/Cocoa + Quartz Composer + Interface Builder woes.

Hi, So, I can't seem to get this (I thought rather simple) Cocoa app working properly. I have a Quartz Composer patch which writes text files based on GUI input, then recalls the text files and displays them on a second display (ie projector.) Everything works as expected from inside QC. That's not (as far as I can tell) the problem....

I have a problem with "viewDidUnload" in Xcode 3.2.3 (I think)

I have this: - (void) viewDidUnload; [super viewDidUnload]; self.cheatName = nil; self.description = nil; } It says that viewDidUnload is undeclared, no matter what I do with it. How do I declare it? But If I have the brackets after the viewDidUnload function, then the problems increase from 1 to 4, with 2 having to do w...

Anyone with a good tutorial for direct RSS embedding in an Xcode project?

Preferably a video tutorial, because all text ones I have seen (incl. from Apple) have not been specific enough. Basic navigation at the bottom, with 3 RSS feeds to keep it simple. I tried using Dashcode (the easy way) but that did not work either. ...

Anybody know how to solve a "viewDidUnload undeclared" problem?

And also how to solve an "expected ';' before '{' token? code below (from xcode 3.2.3) - (void)viewDidUnload { self.cheatName = nil; self.description = nil; } Both errors are in the first line - (void)viewDidLoad { [super viewDidLoad]; [self.titleLabel setText:self.title]; [self.descriptionLabel setText:self.d...

Iphone SDK 4.0 -->> simulator just sits there and doesn't load the ap

Hi I have started learning iphone apps development. However when I build and run the project, the simulator opens with new app icon. When I click on the new app icon ...nothing happens. -->> simulator just sits there and doesn't load the app Any help will be appreciated. Marty ...

How to Detect NSWindow Maximize or Zoom Event?

How do you detect when a user clicks the green maximize or zoom (+) button on the NSWindow without using the NSWindowDidResizeNotification? The reason I don't want to use NSWindowDidResizeNotification is because that is also triggered repeatedly as the user clicks and drags to manually resize the window. I have some code that I want to ...

How to rotate a UIView in 3D without animating it?

This has been driving me crazy and I hope someone can push me in the right direction. I have two UIViews that represent the left and right sides of a book. I have successfully used CATransform3DMakeRotation to rotate one UIView so that it flips up 90 degrees so that it just becomes a line. Now I want to start the other UIView in the "fli...

How to resolve 'RootViewController' may not respond to '-parseXMLFileAtURL:' in Xcode 3.2.3

I'm making a simple RSS feed iPhone app, and I run into this: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; if ([stories count] == 0) { NSString * path = @"myfeedURL.rss"; [self parseXMLFileAtURL:path]; <-------Error Here } ...

what is xcode 3.2.3 analyzer version ??

HI, I am using Xcode3.2.3. i want to know that what is the build version of clang-analyzer that Xcode is using ??? the current clang-analyzer build version is 247. ...

IBActions foo and foo:

In Interface Builder I in Library->Classes when I select a class that I made in XCode, then display the Actions, I can see two with the same name: foo foo: What is the difference between these two foos? ...

Not able to call touch event in iphone when clicking on a button.

Hi all i need to call touch event in iphone when i clicked on a button. i have the following code which is not calling touch event Please any one let me know how to resolve this. The button code is as follows. -(void)method { BottomView = [[UIView alloc] init]; btnRefresh =[UIButton buttonWithType:UIButtonTypeCustom]; [btnRef...

Using Xcode for multiple developer IDs

Hi I am quite new all this iPhone stuff. I have no such clear IDea yet about provisioning profile etc. I will be using my mac machine for two different developer IDs,one for my own and other for the startup where I am working in. Now,how can I use xCode to submit my apps in two different IDs? thanks ...

viewDidLoad in an XCode Utility Application

I have some code that I want to run in a utility application whenever the main view is shown. I put the code in viewDidLoad, and it only runs when the program starts up. If I flip to the other view, and then flip back to the main view, the code doesn't run. So how can I get this code to run everytime the main view is shown? ...

Anyone know how to solve this error breakout?

http://imgur.com/5c3tQ.png Anyone know why this happens? All the code is perfectly done. It is just that I moved from Xcode 3.2.2 to 3.2.3 (I modified the project settings as well). What is wrong? ...

How to export instruments data? ("Export Data..." menu item is gray)

Hi, I want to export my instruments data. But the menu item is gray. I tried everything. How does it work? Is there any way to export CPU Sampler data? Thanks! ...