Folks;
I know my efforts will raise giggles (or worse) but everybody has to start somewhere...
What I REALLY want is some sample code to get an array of mounted smb volumes. This would be deeply appreciated!
But I'm resigned to making a circuitous journey full of learning in order to really understand. I've used the XCode2 online docs and cocoa-dev but I'm just getting my feet wet. So I'm not really effective at these tools.
In any case I've started with NSWorkspace (even though it doesn't seem to deal with network volumes)
So here's my little hack to get started (this is where the giggles come in)
- (void)applicationDidFinishLaunching:(NSNotification *)notification { BOOL removableFlag, writableFlag, unmountableFlag = NO; NSString *description = nil; NSString *fileSystemType = nil;
[[NSWorkspace sharedWorkspace] getFileSystemInfoForPath:@"/Volumes/AnSMB_SHARE" isRemovable:removableFlag isWritable:writableFlag isUnmountable:unmountableFlag description:description type:fileSystemType]; NSLog(@"Removable = %@",removableFlag); NSLog(@"Writable = %@",writableFlag); NSLog(@"Unmount = %@",unmountableFlag); NSLog(@"desc = %@",description); NSLog(@"type = %@",fileSystemType); }
This of course blows up the application without a trace...
Guidance on my real quest: code for mounted smb vols OR Guidance on a strategy for online research to find my answer OR Guidance on the errors of the above any of the above is appreciated!!
There doesn't seem to be a online discussion for XCode at the Apple site (discussions.apple.com). Is this true?
Humbly and Thanks Ahead of Time, Steve |