Re: debug problem
Re: debug problem
- Subject: Re: debug problem
- From: Eric Ocean <email@hidden>
- Date: Sat, 9 Oct 2004 15:56:15 -0700
On Oct 9, 2004, at 3:50 PM, Agent M wrote:
If you're trying to "debug before main" then that code isn't modifying your plist. Xcode may change the modification date of the file, but are you saying that something is editing the file and saving an updated date in the XML? Can you show us the plist?
The latter: my XML plist's
content is being edited. (I know, I wouldn't believe it either...)
Here's the plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aliasData</key>
<data>
AAAAAAFqAAIAAAxNYWNpbnRvc2ggSEQAAAAAAAAAAAAAAAAAAAC6V1xySCsAAAAaOJsL
c3RhclRlc3QuYWkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAEP3T72NtFpQREYgQVJUNf////8AAAkgAAAAAAAAAAAAAAAAAAAA
B0Rlc2t0b3AAABAACAAAulfM8gAAABEACAAAvY4WygAAAAEADAAaOJsAGjiIABOTXAAC
AC1NYWNpbnRvc2ggSEQ6VXNlcnM6Yml6bWFuOkRlc2t0b3A6c3RhclRlc3QuYWkAAA4A
GAALAHMAdABhAHIAVABlAHMAdAAuAGEAaQAPABoADABNAGEAYwBpAG4AdABvAHMAaAAg
AEgARAASACBVc2Vycy9iaXptYW4vRGVza3RvcC9zdGFyVGVzdC5haQATAAEvAAAVAAIA
Df//AAA=
</data>
<key>baseName</key>
<string>starTest</string>
<key>fileAttributes</key>
<dict>
<key>NSFileCreationDate</key> <-- this key changes !!!!!!!!!!!!!!!!!!!!!
<date>2004-10-09T22:29:30Z</date>
<key>NSFileExtensionHidden</key>
<false/>
<key>NSFileGroupOwnerAccountID</key>
<integer>503</integer>
<key>NSFileGroupOwnerAccountName</key>
<string>bizman</string>
<key>NSFileHFSCreatorCode</key>
<integer>1095914549</integer>
<key>NSFileHFSTypeCode</key>
<integer>1346651680</integer>
<key>NSFileModificationDate</key> <-- this key changes, too !!!!!!!!!!!!!!!!!!!!!
<date>2004-10-09T22:29:30Z</date>
<key>NSFileOwnerAccountID</key>
<integer>503</integer>
<key>NSFileOwnerAccountName</key>
<string>bizman</string>
<key>NSFilePosixPermissions</key>
<integer>420</integer>
<key>NSFileReferenceCount</key>
<integer>1</integer>
<key>NSFileSize</key>
<integer>650145</integer>
<key>NSFileSystemFileNumber</key>
<integer>4454223</integer>
<key>NSFileSystemNumber</key>
<integer>234881031</integer>
<key>NSFileType</key>
<string>NSFileTypeRegular</string>
</dict>
</dict>
</plist>
The keys "NSFileCreationDate" and "NSFileModificationDate" will update (you can see it happen live in BBEdit) before main() is reached when I launch my application.
Here's how to duplicate it: on a previous run, the plist is saved out to disk. Then I quit my application, and modify the target file (an Adobe Illustrator document). I save that file. Now the modification dates are different (verify by doing Get Info... in the Finder). My app isn't running at the point.
Here's where the behavior diverges. If I quit Xcode, restart it, and then launch my application, it will read the above plist, compare it to the new modification date, determine they're
not equal, and do what it's supposed to do.
If, on the other hand, I don't quit Xcode but just relaunch my application (in the debugger, but it's also true with just command-R) and stop on a breakpoint at main(), when I stop and click in the BBEdit window containing the plist, it will update right before my eyes to the
current modification date of the file. Of course, the dates then are equal and my code doesn't do what it's supposed to do.
Does that make sense?
Regards,
Eric Ocean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden