• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSWorkspace sharedWorkspace] noteFileSystemChanged:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >[NSWorkspace sharedWorkspace] noteFileSystemChanged: (From: Sly Upah <email@hidden>)

  • Prev by Date: Re: Custom object/pallette works on one machine, but not another
  • Next by Date: Re: X Code Can't Run
  • Previous by thread: [NSWorkspace sharedWorkspace] noteFileSystemChanged:
  • Next by thread: Transparent TextView/AJRScrollView in Panther ?
  • Index(es):
    • Date
    • Thread