Working with Tables: Writing an Address Book Application
Subject:   Error Messages
Date:   2001-09-01 12:40:23
From:   TheBum
Response to: Error Messages

I know this suggestion is a couple of weeks late, but I just finished working through the exercise. I came up with a one-line correction to the duplicate deletion problem that allows apparent duplicate entries to remain in the array (emphasis on "apparent"). Just add the following line to createRecord:

[record setObject:[NSDate dateWithTimeIntervalSince1970:time(nil)] forKey:@"Tag"];

This approach uses the current system time to uniquely tag each record behind the scenes. You'll also have to add a "#import <time.h>" to the top of the .m file.

1 to 1 of 1
  1. Error Messages
    2001-09-01 12:45:05  TheBum [View]

1 to 1 of 1