Why are you trying to initialize your myString variable with no data?
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
Then refer to smithdale's post.... also, put a breakpoint in that function; step through and see exactly which line is crashing your app.
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
unfortunately my NSLog is broken... when I got the new xCode it stopped working.. I can't display the errors with ease /:
I didn't say use NSLog.... I said use a breakpoint. They are invaluable for debugging.
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
How is it possible to break NSLog? Have you tried stepping through your code in the debugger then to see which line makes the app go boom?
But yes, good point! How do you break NSLog??!!
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
unfortunately my NSLog is broken... when I got the new xCode it stopped working.. I can't display the errors with ease /:
I bet it's not broken. I bet you can't find the debug console, since just about everything about Xcode 4 is different from Xcode 3, in a different place, works differently, etc.
In XCode 4 you have to show the debug area (Command 5), and then click the right cryptic little symbol at the top of the debug area:
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
No, the phone doesn't return anything to my debugger.. it only works for the simulator. but yeah, xcode 4 does have alot of re-arranging... Does anyone know what path I need to use for writeToFile? ....
My 666th post
__________________
APPS4LIFE
search for me in the app store.
Last edited by orange gold; 09-08-2011 at 08:27 PM.
No, the phone doesn't return anything to my debugger.. it only works for the simulator. but yeah, xcode 4 does have alot of re-arranging... Does anyone know what path I need to use for writeToFile? ....
Put a breakpoint in the function. Step over each line. Check the variables, see what's going on.
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
But what information do you get from the debugger when you step over that line? And, before you step over that line, are the values in your variables what you expect them to be?
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
They are the correct values... my debugger isn't working ahhhh this is annoying ahhaha! Maybe I just need to find some source code for writeToFie and copy it...
__________________
APPS4LIFE
search for me in the app store.
They are the correct values... my debugger isn't working ahhhh this is annoying ahhaha! Maybe I just need to find some source code for writeToFie and copy it...
Wait a minute... NSLog is 'broken' and your debugger 'isn't working'? This sounds very strange. Are you sure you're running in XCode? And if you are, do you actually know how to use it?
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----
Haha, yes I am (:0
My phone doesn't send anything back to the computer because when I launch the app ever since I updated to the new xcode it loads it on but never launches it so I have to manually open the app on the phone and by then it is not connected to xcode's debugger anymore...
It no longer freezes when I write to file but when I try to load the file nothing comes up which makes me think that it isnt actually writing or my loading method is wrong..
Here is how I load an html file I "wroteTo" using the writeToFile code:
This worked on the simulator when I was just writing to the hard drive..
Now that I am writing to a file in the resources folder using my "paths" variable it no longer works..
But I still haven't confirmed wether the loading isnt working or the writing isnt working or neither are, all I know is the writing doesnt freeze the app anymore. (by freeze I mean exit sigabrt)
/:
__________________
APPS4LIFE
search for me in the app store.
AHHHH!!! you can't writeToFiles in your resources folder! you have to write to files in your directory! A person answered on another forum and gave example code that worked perfectly!
YAY!
__________________
APPS4LIFE
search for me in the app store.
Please heed this advice: find out why your debugger no longer works and fix it. Without a debugger you are going to have a massively uphill struggle while developing any type of software.
__________________
Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----