• 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
take pity on rank beginner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

take pity on rank beginner


  • Subject: take pity on rank beginner
  • From: Steve Cronin <email@hidden>
  • Date: Sun, 22 May 2005 17:49:20 -0500

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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: take pity on rank beginner
      • From: Daniel DeCovnick <email@hidden>
  • Prev by Date: Re: Subclassing NSManagedObject
  • Next by Date: Re: What does "NS" means ?
  • Previous by thread: Re: Subclassing NSManagedObject
  • Next by thread: Re: take pity on rank beginner
  • Index(es):
    • Date
    • Thread