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

Re: NSWorkspace getFileSystemInfoForPath:...


  • Subject: Re: NSWorkspace getFileSystemInfoForPath:...
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Tue, 11 Mar 2003 15:00:39 -0500

On Tuesday, Mar 11, 2003, at 14:22 US/Eastern, spike wrote:

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]];

This line should be:
NSMutableArray *dvdMediaListPath = [NSMutableArray arrayWithArray: [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.


--
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
_______________________________________________
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 getFileSystemInfoForPath:... (From: spike <email@hidden>)

  • Prev by Date: Re: NSFileManager miscount
  • Next by Date: RE: Threads and messages
  • Previous by thread: NSWorkspace getFileSystemInfoForPath:...
  • Next by thread: Service problem
  • Index(es):
    • Date
    • Thread