xcode

xcode: calculate expression when Debug

Can Xcode calculate the value of an expression while debugging? I mean like MS visual studio, there is a "watch" window, where the debugger can input expressions composed with the local variables, and vs will calculate the value. can similar thing be done also in xcode? how? ...

iPhone memory leak (a lot of allocations)

I tested my app in Instruments. No leaks found, but app crashes (not immediately - after ~20 minutes [depends on user's activity] of working). I viewed Allocations. It reports: Category | Live Bytes | Count Live | # Living | # Transitory | Overall Bytes | # Allocations (Net / Overall) Malloc 16 Bytes | 235088 | 14693 | 0 | 235088 | 1469...

Data Types and XMLParser

Hello, I syncing the data on my website to my app, I'm using NSXMLParser to do this. The problem is I have all the fields on my database defined as Strings. The sync process works fine when everything is a string, but this is causing me heartache further down the line when I try and use this data for other purposes. Can anyone help me ...

iPhone Simulator Apps Crash

I am trying to run my app in iPhone Simulator, but it crahes on the start. Moreover, default apps (settings, Safari etc) crash too. Console doesn't show anything except [Session started at 2010-07-23 13:44:07 +0400.] Failed to launch simulated application: Unknown error. and there are no crash logs in /Library/Logs/DiagnosticReports. ...

kCGErrorFailure while performing drag and drop in NSView

Hi all, I have created a simple drag and drop application in which I am sometimes getting this exception msg, displayed in debugger console: kCGErrorRangeCheck: CGSNewWindowWithOpaqueShape: Cannot create window kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged. kCGErrorIlleg...

Please help memory warning 1 then 2

Hey guys just a quick question: I have an app, it has multiple view controllers, who have 2 views each. one for portrait and one landscape. The delegate has all the actions in it. These are called from the view controllers The_Ride_Vol_1AppDelegate *mainDelegate = (The_Ride_Vol_1AppDelegate *)[[UIApplication sharedApplication] delegat...

Xcode Memory problem, unloading and loading views from delegate

Hey guys just a quick question: Overview: I have a basic magazine app, it has multiple view controllers, who have 2 views each. one landscape and one portrait view for visual reasons. The app delegate has all the actions in it. These are called from the view controllers using : The_Ride_Vol_1AppDelegate *mainDelegate = (The_Ride_Vol_...

Does anybody know how to access a remote sqlite database using objective-c?

I'm developing a simple macosx application and it needs to access a remote sqlite database (must be sqlite). I've been looking for an example on how to do it through ODBC (I don't know if ODBC is the best or easy way). Does anybody have any idea? Thanks! ...

Differences between iPhone OS v2 and v4?

Hi Can any one say difference between the iPhone OS 2+ till 4 and what's the main difference in the OS as well as the development in xcode.. Thanks ...

Why does this statement about UIColor whiteColor evaluate to false?

Just testing something out....I'm trying to get the background colour of my view to switch when I shake it....but only if it is currently a certain colour. -(void)viewDidLoad{ self.view.backgroundColor = [UIColor whiteColor]; } -(void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ if(event.subtype ==...

Load a particular NIB based on tableview selection

I have an initial table view that I created as the initial menu within my app. Obviously each option will access something different including NIBs. Part of the constants for the menu options is the NIB. When each option is pulled from a PLIST, I also include which NIB I would like to be called upon. Am I missing something or am I just ...

error console shows "GuardMalloc"

Hi May i know y? it shows error like this(following error).may i know what for it shows me like this GuardMalloc: Allocations will be placed on 16 byte boundaries. GuardMalloc: - Some buffer overruns may not be noticed. GuardMalloc: - Applications using vector instructions (e.g., SSE or Altivec) should work. GuardMalloc: GuardMalloc...

multiple xibs help

If i want multiple view controllers for aesthetic reasons with 2 views each, what is the best way to call them and dismiss the view for memory performance from the app delegate, say the xibs are called p1 p2 p2 etc ...

Ipad Split view controller

Hey guys is there any way when i rotate an ipad split view app that my view could take up the full screen instead of the menu or resize it. I like the portrait mode with the menu in the button. How would i go about doing this. Cheers ...

NSFetchedResultsController - phantom row

Just run into a tricky NSFetchedResultsController problem. The following code works fine in all cases EXCEPT for the very first entry to the Core Data database when it reports 2 rows! id <NSFetchedResultsSectionInfo> sectionInfo = [[fetchedResultsController sections] objectAtIndex:section]; numberOfRows = [sectionInfo numberOfObjects]...

How do I catch ALL program aborting errors on iPhone?

I've written an unhandled error module for my iPhone app, but for some reason some errors are managing to bypass it. I have an exception handler and the following signal handlers set: NSSetUncaughtExceptionHandler(&handleException); signal(SIGILL, handleSignal); signal(SIGABRT, handleSignal); signal(SIGFPE, handleSignal); signal(SIGBUS...

how to add back ground image to navigation controller root view

i want to add bg image to root view so that it will be visible in all views .... ...

XCode: Two targets, two main files?

I'm working up a game in XCode, and I want to add a helper application that uses the main application's various classes to build the main application's data files. Specifically: The main application is a card game. I want a helper app that uses the classes such as card.m while it creates the deck.xml files for the deck of custom cards t...

How to make image Disappear on touching it ?

hi, I am working on apllication for iphone in xcode 3.1. I want similar two images to disappear when touched one after other. I have succeed in displaying two images on iphone simulator on touching 'PlAY' button. Now i want that when two same images are 'touched' one after another,they should disappear. Expect code in Objective C. ...

how to set an image to navigation controller back button

i want to set an image to the back button of navigation controller ...