• 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
NSWorkspace getFileSystemInfoForPath:...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWorkspace getFileSystemInfoForPath:...


  • Subject: NSWorkspace getFileSystemInfoForPath:...
  • From: spike <email@hidden>
  • Date: Tue, 11 Mar 2003 14:22:56 -0500

I'm having some trouble with NSWorkspace's getFileSystemInfoForPath:... method.

I get "*** -[NSCFArray _getVRefNumForPath:]: selector not recognized" as the error.

anyway know why?

I call it like this:

NSWorkspace *ws = [NSWorkspace sharedWorkspace];

NSMutableArray *dvdMediaListPath = [NSMutableArray arrayWithObjects: [ws mountedRemovableMedia]];

int i = 0;

BOOL isRemovable;
BOOL isWritable;
BOOL isUnmountable;

for (i = 0; i < [dvdMediaListPath count]; i++) {
[ws getFileSystemInfoForPath: [dvdMediaListPath objectAtIndex: i]
isRemovable: &isRemovable
isWritable: &isWritable
isUnmountable: &isUnmountable
description: nil
type: nil];
}
}

and I get that error. I can print the objectAtIndex: i without problem, so I know the problem doesn't lie there.

any help?


...spike
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSWorkspace getFileSystemInfoForPath:...
      • From: "Clark S. Cox III" <email@hidden>
  • Prev by Date: Re: NSFileManager miscount
  • Next by Date: need help with CFMessagePortCreateRunLoopSource crash
  • Previous by thread: Applescript question: Creating objects without location specifier
  • Next by thread: Re: NSWorkspace getFileSystemInfoForPath:...
  • Index(es):
    • Date
    • Thread