Re: [NSWorkspace sharedWorkspace] noteFileSystemChanged:
Re: [NSWorkspace sharedWorkspace] noteFileSystemChanged:
- Subject: Re: [NSWorkspace sharedWorkspace] noteFileSystemChanged:
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 29 Jun 2003 04:28:21 +0200
At 20:29 Uhr -0500 28.06.2003, Sly Upah wrote:
I seem to have run into a situation where
[NSWorkspace sharedWorkspace]
noteFileSystemChanged:@"/Users/username/Desktop/"];
will cause my application to seg fault. I don't understand why, I was
using it before and all I did was move a few lines of code around:
if ((stat(aliasfile,&sb)) == 0) {
unlink(aliasfile);
printf("unlink\n");
[[NSWorkspace sharedWorkspace]
noteFileSystemChanged:@"/Users/supah/Desktop/"];
}
Is this copied from your code, or did you retype it? Did you check
whether you get any warnings about that line from your compiler? I
often get crashes when I forget the @ before an NSString, because GCC
only gives a warning when a pointer to a C-String is passed where an
NSString is expected.
It could also be corrupted memory. When you overwrite a piece of
memory by accident, the error often doesn't show up until that memory
is actually used, which can be "weeks later..."...
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.