hi guys
What exactly does xcode do with project snapshots after the xcode project is moved or renamed. I have noticed they completely disapear...Where should I look?
Defintely not in ~/Library/Application Support/Developer/Shared/SnapshotRepository.sparseimage
...
I am having a terrible time trying to get an input box like the one in the SMS app.
Can anyone offer some guidance on how to build one of these and make it look good? I need an input box that is shaped nicely like the UITextfield but will stretch vertically when typing.
I assume that I need to calculate width of the text and stretch ...
I have a UITableViewController and when I push a particular view onto the stack it takes forever so I wanted to add a spinner to the cell before moving along. The problem I'm having is that the spinner gets added after the new view gets pushed onto the controller stack. But I thought that messages were synchronous?
So how can I make thi...
Hello All,
I had a EXC_BAD_ACCESS message in my console. I read about the environment variables NSZombieEnabled and MallocStackLoggingNoCompact on this site. I created my environment variables: NSZombieEnabled = YES and MallocStackLoggingNoCompact = 1. In the console, I saw
2010-03-01 19:13:46.924
CruzNomad[7952:207] * -[CFString...
I'm working on a project which includes some slightly more complex dynamic layout of interface elements than what I'm used to. I always feel stupid writing complex code that checks if so-and-so is close to such-and-such and in that case move it x% in some direction, etc. That's just not how programming should be done. Programming should ...
i still cannot understand what it means to return an object in a method. what would its value mean?
if i have something like this:
-(ClassName *) methodName: (int) arg {
return arg;
}
i cant understand how an object can be returned through a method as the above. if someone can help me understand. thanks.
...
When I run my iPhone app with "Leaks" (which has a section for Object Alloc), my app seems to be fine for memory allocation. However, when I run it with just the ObjectAlloc tool, the memory increases steadily as the app runs its main timer. (It is a timer based app). I'm not sure what to trust. I was just wondering if there are any ...
I have some VERY simple code to return the title for a section header:
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
if (section==0) {
return @"";
} else if (section==1) {
return @"Actions";
} else if (section==2) {
return @"Attached To";
}
retu...
I know this question has been asked before, and I took a look at the answer to this question. However, I'm still confused as to how to implement reordering with a UITableView in a Core Data project. What I know is that I need to have a "displayOrder" attribute in my Entity to track the order of items, and I need to enumerate through all ...
Ok, so I am making progress since my last question. My question now is a lot more simple, or at least I understand more clearly what my question is. In my AppDelegate I have this code to read in data from my database:
-(void) readFromDatabase {
// Setup the database object
sqlite3 *database;
// Init the Array
sections = [[NSMutableArra...
I can't say I really understand the memory handling in Objective-C so I have a couple of questions concerning that.
Do I have to remove the objects "url" and "urlRequest" in the box below or does "urlConnection" take on the responsibility for doing that?
NSURL* url = [NSURL URLWithString:url];
NSURLRequest* urlRequest = [[NSURLRequest...
i need to update my sqlite database which is on the external source(URL).
...
I have a core data object graph (consisting of two entities linked by a to-many relationship).
I was curious, as a relatively inexperienced iPhone developer, whether anyone could recommend an approach, and a suitable JSON implementation for the iPhone, which would allow me to:
1) convert the core data records into a JSON string (whils...
I am facing some problem in iPhone application development for "Reading PDF".
I have tried following code. I know I have used wrong methods for parsing - parsing methods are just used for searching purpose. But I want to convert entire pdf text in to a string. Say for example Apple's MobileHIG.pdf - I have used in this code.
@implementa...
Hello,
I've added the JSON parser to my project and try to parse a JSON string. On most strings it works as it should, but sometimes it isn't. My first thought was, that the JSON string is not well formed, but I've checked it with several JSON validators and they all say it's correct. I additionally checked the string for some line brea...
Hello,
I'm currently using the ARKit ported by the http://iphonear.org guys, looping through a fetched xml and plotting coordinates on the screen. However for some reason casting the object values:
for(NSObject *locxml in xmlLocations) {
tempLocation = [[CLLocation alloc]
initWithLatitude: (int)[locxml valueF...
Hi.
I'm trying to create a cell on a tableview which doesn't go "all the way" from left-to-right of the screen.
Basically, what I need is a cell which (as usual) starts on the left side of the screen, but with a given width, creating a free space on the right.
Is there any way of doing it? I wasn't able to find any example.
Sorry for...
how can i handle wsdl in objective c? maybe manual parsing of xml? any tutorial?
...
I'm sure it is wishful thinking, but is there a counterpart to +initialize that will automatically get called when all instances of a class have been dealloc'ed?
I allocate a singleton object in +initialize, which is called before my first class instance gets alloc'ed. I would love to be able to release the object once my class insta...
Hello,
I have successfully created an app that reads from a bundled .plist file and displays the contents in a UITableView. I would like to move that plist to an external site, as it is updated frequently. even better, I would love to have it generated with PHP. I have got the server side working, but the Objective C is giving me a head...