xcode

Issue fetching Images asynchronously in UitableView cells, which is loaded as a background process :s

Hi, I am building an iphone app, now this app has a tabviewcontroller and one of the tabs has a navigation view controller in it. Inside the navigation view controller I have 2 UIview controllers and in one I am loading a UITableView. The data for the cells is loaded up from a database and it takes some time, to avoid this I am doing a ...

Static analyzer says I have the potential leak of an object...

This is an object I made to do some flash cards. The first method (I left out the main part) generates a NSMutabaleArray of Card objects with the passed in operator and works fine. The second method, "drawFromDeck" gets called on a Deck object from my view controller and also works fine, but the Static Analyzer says I may be leaking an...

iOS4, wifi connection notification

Hi Everyone, Using iOS 4, is there a way for a notification to be generated when the devices comes into a wifi zone, and is connected? My application would like to sit and wait for a notification to be generated that indicates that it is now in a wifi zone and has connected. When the notification is generated, my application would the...

Why isn't AVAudioPlayer found after upgrading to iPhone SDK 4.0?

This is a simple problem, but it is proving surprisingly intractable for me. As part of beginning to learn iPhone programming, I have written a few small programs and also entered some from a couple of books. These apps worked fine until the other day when I downloaded and installed the latest development software from Apple. Now my...

Showing a new view over the camera view

Hi All I am using UIImagePickerController to allow the user to take a picture. I have hidden the default camera controls and added my own buttons. All good so far. When one of these buttons is pressed I want it to load a setting view over the top where the user can change some settings and then return back to taking a picture. My butt...

How do I programmatically rename a file(pictre) once I have saved it to the iPhone?

The app basically takes a picture, saves the image to a file and stores the file location in coredata. From here I either choose to save/submit this image or discard it. If the file is saved I want to leave it alone, if it's submitted I want to take the response and name the image that file, and if it's discarded I don't want it. Idea...

iPhone - Change indentation row for a cell while editing.

Hi. I'm trying to change the indentation for a custom UITableViewCell's content (namely, a image, a button and a label) when a UITableView is being edited. I tried changing the cell's indentation width and level like this [cellToCustomize setIndentationLevel:1]; [cellToCustomize setIndentationWidth:20]; and it took me nowhere. I als...

iOS4 accessing the DCIM folder

Hi Everyone, I would like to read/write to the DCIM folder. I was able to perform this operation under 3.1.3, but it fails under 4.0 The question is... Has the actual location been moved within the iPod directory tree? Previously it was located at... /var/mobile/Media/DCIM But i do not have a jailbroken 4.0 machine, i cannot find ...

Quick deployment of an app after build without running

Via Xcode is there a quick way to deploy an app you've just compiled to an attached iPhone without actually launching it on the phone? My scenario is that I've tested it out my app just fine in the simulator, now I just want to deploy it to my provisioned iPhone, grab the device and go without running it then and there. Sure, I can just...

Objective C error: Passing argument 1 of 'setStringValue:' from incompatible pointer type

Ok here is part of the code that is causing the error: char charlieReturn[10000]; charlieReturn[10000] = system("osascript /applications/jarvis/scripts/getTextCharlieResponce.scpt"); self.charlieOutput.stringValue = charlieReturn; The getTextCharlieResponce.scpt returns something like this: "Hi my name is charlie" and maybe som...

Objective c quotes and variables

I'm trying to do something like this: NSAppleScript *sendCharlieImput = [[NSAppleScript alloc] initWithSource:@"tell application \"terminal\" to do script " charlieImputSelf " in front window"]; [sendCharlieImput executeAndReturnError:nil]; The variable charlieImputSelf is going to be put into the terminal window as a command. BUT I n...

How to follow this Xcode tutorial?

I'm using Xcode version 3.2.2 but the tutorial at this site was made for an older version of Xcode. I tried to follow this tutorial but like the tutorial says steps 12-18 don't make sense for newer versions of Xcode. I can't drag .h files into the .xib window in Interface Builder. How would steps 12-18 be different? Learn Cocoa II ...

objective c audio meter

Is it possible for xcode to have an audio level indicator? I want to do something like this: if (audioLevel = 100) { } or something similar... Any ideas?? Example code please? I'm VERY new to objective c so the more explaining the beter! :D ...

Quoting the argument

- (IBAction) charlieImputText:(id)sender { NSAppleScript *keystrokeReturn = [[NSAppleScript alloc] initWithSource:@"tell application \"System Events\" to keystroke return"]; [keystrokeReturn executeAndReturnError:nil]; [progressBarText startAnimation:self]; charlieImputSelf = [sender stringValue]; NSAppleScript *sendCharlieImput = [[...

Link libpq.a(Postgres lib) with Xcode project, dependency errors

Hi! I am trying to link libpq.a to a c++ library being build on Xcode, to use Postgres functions's so I can connect and retrieve data. My problem is that when I build the project, it complains about references from the libpq.a, like in the image below: few minutes ago, it was much more errors... it was complaning about openssl lib ...

The problem continues....please help

Here is the code: - (IBAction) charlieImputText:(id)sender { [progressBarText startAnimation:self]; charlieImputSelf = [sender stringValue]; NSAppleScript *sendCharlieImput = [[NSAppleScript alloc] initWithSource:[NSString stringWithFormat:@"tell application \"Terminal\" to do shell script \"%@\"", charlieImputSelf]]; [sendCharlieIm...

xcode: following tutorial but 'subViewOneController' undeclared error

Hello, So I'm new to programming for the iPhone and I'm trying this new tutorial here: http://theappleblog.com/2009/04/15/iphone-dev-sessions-create-a-navigation-based-application/ When I build the project, under the: RootViewController.m I get a 'subViewOneController' undeclared error at the first line: // allocate a set of views an...

NSCFString objectAtIndex unrecognized selector sent to instance 0x5d52d70

I'm new to iPhone development, and been having a hard time trying to figure out why my table isn't working. It could be something with Core Data, I'm not sure. The viewDidLoad method works fine at the start, but when I try to scroll the table view, when a next row appears, I get the error: NSInvalidArgumentException', reason: '-[NSCFS...

Build and Analyze using xcodebuild

Is there a way to do a Build and Analyze like in Xcode using xcodebuild? I'm using Xcode 3.2.2 ...

What is Developer in the Settings App?

I updated my iPod touch to iOS4, and connected it to my Mac. I opened Xcode's Organizer, and clicked 'Use for development.' Since then, when I open te Settings App on my iPod, there is an extra section between 'Safari' and 'Nike+' called 'Developer' (it is not Safari's debugging console!). When I select it, the awesome navigation contro...