xcode

Xcode Instruments: Analyze Network Traffic

Hi Guys, i have a problem with testing my iPhone app: i want a summary of how much network traffic the app needs for a special operation. I have tried using instruments, but the network activity monitor has no sum of the traffic (and i really neeeeeeed a sum!!!). So how can i get the sum out of the network activity monitor? Best regar...

How to change iPhone App name 100%!

Can't seem change the name of my iPhone app 100%. I followed multiple threads and performed the outlined methods below, but the old name keeps popping back up in Console. I'm concerned that on some deeper level the app's name has not really been changed 100%. My concern is with the fact that I've made a "Lite" version by starting wit...

MKMapView broken in 3.2.3 / OS4 - Can't set region

In the last version of Xcode, set region worked fine, now in 3.2.3 it doesn't snap to your specified region? After View did load... [mapView setMapType:MKMapTypeHybrid]; [mapView setZoomEnabled:YES]; [mapView setScrollEnabled:YES]; MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } }; region.center.latitude = 41.902245099708...

GCC/XCode speedup suggestions?

I have a stock mac-mini server (2.53GHz, 4GB, 5400RPM drive) which I use for iphone development. I am working on a smallish app. The compilation seems to be taking longer and longer (now about 20min). The app is about 20 small files totaling 4000 lines. It links to C++/Boost. What suggestions do you have to speed up the compilation proc...

Fetched properties as properties of an NSManagedObject subclass

I have a subclass of NSManagedObject (NSMO) called Team. Team has a one to many relationship with another NSMO subclass called Contract. Contract has a 1-to-1 with Player (another NSMO). I would like to simplify my code that uses Team and be able to just refer to its "players". Players will just be an array of players that have a contrac...

getting values from NSTextField in objective c and xcode

How can I continuously get data from an NSTextField and do this in the background? I'm doing this because I'm using a quartz composer plugin to get posted values in an NSTextField. This is within the same app. Any ideas?? Elijah ...

Extra error on unit test in Xcode

I always have a extra error when I try check if my expected error appear in my unit test. First appear this error: "command /bin/sh failed with exit code 1" then my expected error. Is this normal, I'll always see the first error? ...

No Local Variable or Arguments in Xcode 3.2/iOS 4?

I've updated a project to Xcode 3.2 and the iOS 4 SDK, and now, I don't get any local variables or arguments in gdb. I've confirmed that Debug Information Format is (still) set to "DWARF with dSYM File," the compiler is GCC 4.2 (no LLVM or Clang), and GCC_OPTIMIZATION_LEVEL is 0. Any thoughts about what I might be doing wrong? ...

Debugging changed with XCode 3.2.3?

Recently switched from XCode 3.2.2 to 3.2.3 for iOS4 and i noticed that i can no longer view the values of my property variables or any variables for that matter in the debug window? In 3.2.2 when a breakpoint was reached i was able to view all my class variables in the "self" tree node in the variable window. I could also just hover o...

objective c loops

How can I loop right in the middle of objective c? For example in the .m file: #import "untitled.h" @implementation untitled - (IBAction) runSample:(id)sender { (this is running when the button is pressed) } (Something here that just constantly repeat that won't mess anything else up) @end Any ideas?? Elijah ...

Objective c ERROR: incompatible types for argument 2 of 'NSRunAlertPanel'

Here is the code: float charlieSoundVolume; charlieSoundVolume = [charlieSoundLevel floatValue]; NSRunAlertPanel(@"CHARLIE",charlieSoundVolume, @"", @"", @"Ok"); This gives me the error: incompatible types for argument 2 of 'NSRunAlertPanel' Will NSRunAlertPanel not accept floats? Any ideas?? Elijah ...

textDidEndEditing: Objective c example

So I know you have to put this in the .h file: - (void)textDidEndEditing:(NSNotification *)aNotification BUT what do I call in the .m file?? How do I show that text is done editing in one of several NSTextFields? I looked around on the internet, but it seems pretty vague on how to use it correctly. Any ideas? Elijah ...

Objective c checking whether text field is empty

Here's the code: - (IBAction) charlieImputText:(id)sender { //getting value from text field when entered charlieImputSelf = [sender stringValue]; if (charlieImputSelf != @"") { (send field if not empty) } } This sends it even when the field is empty; therefore, this does not work as I want it to. Sorry...

NSInvalidArgumentException

I'm working through "iPhone Development: The Big Nerd Ranch Guide". The project is "Random Possessions". I am faithfully following the code in the book and it compiles OK but I get this exception when running it: 2010-07-04 11:43:48.511 RandomPosessions[14828:a0f] -[Posession initWithPosessionName:valueInDollars:serialNumber:]: unrec...

iPhone app not reloading data after reopening

Hi I am new to objective-c and iPhone app development. Currently I've been faced with a problem that I'm not sure how to fix. The problem is that I want my app to completely close and release all data when the user presses the home button and then when the user reopens the app it refreshes the data from my online server. I am currently ...

UITableView in a UIViewController - how do I manage? newcomers question...

Finally managed to start fiddling with Xcode and Objective-C since yesterday. What I have now is A UIViewController which has in it a UITextView a Tab bar with a view Tab buttons (not functional yet) a TableView I have coded basic functionality where a keyboard pops up on the TextView, and when you enter text and hit 'done', I am a...

for 1 second: objective c coding help

Is it possible to do something like this? if (myVariable == 100 for more than 1 second) { } So if myVariable equals 100 for more than 1 second do something. Thanks! Elijah ...

Github. How do I make changes to what is ignored via .gitignore?

I have an Xcode project that uses git for version control. I have a .gitignore file to ignore the build subdirectory: build/* I recently added a subdirectory that contains an Xcode project and forgot to update the .gitignore file before checking it in. Is there any way to make git ignore the build subdirctory now, after the fact? ...

How to build command line tool in iphone project

Hi, I just started programming in Xcode and I'm trying to write an iphone application. I started out with a simple template for Iphone development and took it from there. Now I would like to build a command line tool (for converting data) which reuses some of the classes in my iphone project. I managed to add a new target 'convert', lin...

objective c javaScript

Is it possible for a NSTextField to respond to javascript commands?? Thanks! Elijah ...