• 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 File System Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspace File System Methods


  • Subject: Re: NSWorkspace File System Methods
  • From: Joe Muscara <email@hidden>
  • Date: Thu, 17 Jan 2002 12:17:46 -0600

Thanks guys! That did the trick. I guess I'll dig into the Carbon files API for the info I need...

Joe

On Thursday, January 17, 2002, at 12:02 PM, Douglas Davidson wrote:

This is a bug; on the other hand, filesystem types are complicated enough now that a simple string like this is not so useful. The Carbon files APIs have extensive means for querying filesystem attributes, and there are also BSD-level APIs.

My second question is that I want my app to update when there's a change to the file system (disk mount/unmount, etc.). I would think that the right method to use would be fileSystemChanged, but damned if I can figure out how. I mean, where do I put it in my app? If it were a delegate method, I'd know, but maybe I've been doing those too long lately. Sorry if this is a "duh."

Register with NSWorkspace's notification center for the "did mount" and "did unmount" notifications.

and on Thursday, January 17, 2002, at 11:49 AM, Eric Peyton wrote:

My second question is that I want my app to update when there's a change to the file system (disk mount/unmount, etc.). I would think that the right method to use would be fileSystemChanged, but damned if I can figure out how. I mean, where do I put it in my app? If it were a delegate method, I'd know, but maybe I've been doing those too long lately. Sorry if this is a "duh."


Register for the two NSWorkspace notifications of disk mounts and unmount (you do not use the fileSystemChanged method - you are looking a that method incorrectly).


References: 
 >Re: NSWorkspace File System Methods (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Draggable NSImage of custom NSView ???
  • Next by Date: Re: path names with spaces
  • Previous by thread: Re: NSWorkspace File System Methods
  • Next by thread: getting a different kind of TIFF file recognized...
  • Index(es):
    • Date
    • Thread