Hi,
I have been trying to create a command line application in Xcode.
I am trying to port it into a jailbroken device.
It seems that when i try to run it from the main.m without using UIApplication.
the following code doesn't behave as it does from the
Code:if ([fileManager isReadableFileAtPath:nextItem]) { [dbList addObject:nextItem]; NSLog(@"%@", nextItem); } else { NSLog(@"File not readable at Path %@", nextItem); }
when this code is running from the springboard - most of the files are readable (iSReadableAtPath returns true)
when the code is running from the command line (via ssh ) and i put this code inside the main.m file (removing the UIApplicationMain...) - the function returns false for everything...
Can someone please explain what am i doing wrong?
I didn't installed toolchain yet - because i didn't find anything that is relevant for 4.0 and above...(it seems very old...from 2008)
Sorry for the new-bee question.
Thanks,



LinkBack URL
About LinkBacks








Reply With Quote
Bookmarks