Article Preview
Buy Now
COLUMN
Better Dating
Issue: 2.6 (July/August 2004)
Author: Charles Yeomans
Author Bio: Charles Yeomans pontificates on REALbasic from Lexington, Kentucky
Article Description: No description available.
Article Length (in bytes): 5,554
Starting Page Number: 33
Article Number: 2617
Related Link(s): None
Excerpt of article text...
Why doesn't setting FolderItem.ModificationDate.TotalSeconds change the modification date of a FolderItem? More importantly, why shouldn't it?
The answer to the first question is simple enough; FolderItem.ModificationDate is not returning the same Date object that it might be holding internally. To answer the second question, let's suppose that it did. This would mean that any other object could call FolderItem.ModificationDate to get that Date reference, and then pass it around the program. Later on, some other object might modify that Date object, unintentionally changing the modification date of the FolderItem.
...End of Excerpt. Please purchase the magazine to read the full article.