Re: NSWorkspace getFileSystemInfoForPath:...
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.