• 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
[repost] NSFileWrapper not accepting local disks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[repost] NSFileWrapper not accepting local disks


  • Subject: [repost] NSFileWrapper not accepting local disks
  • From: Robert Kuilman <email@hidden>
  • Date: Wed, 4 Feb 2004 21:15:07 +0100

Hey all!

I've been having this problem with NSFileWrapper. When i create an
instance of NSFileWrapper, and
make it point to a file or folder with

NSFileWrapper *myFile = [[NSFileWrapper alloc]
initWithPath:myFilePath];
(assuming myFilePath to be an NSString with a correct path in it)

the following code works just fine
[CD_Icon setImage:[myFile icon]];
[CD_Icon setNeedsDisplay];

However, when myFilePath is the path to one of my LOCAL disks, the
myFile becomes invalid. This is not the case when pointing to CDs or
nfs volumes.

Can anyone give me a explanation why this works the way it does? The
code i use is exactly as show above.

Thanks in advance!

Robert K.

-----------------------------{ Official Cocoa Newbie! }-----------------------------
web: http://halfduplex.net/
email: email@hidden
_______________________________________________
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.
  • Prev by Date: Re: [Q] how to tell when drawing is done?
  • Next by Date: Re: Cocoa/Windows parallel dvlpmt
  • Previous by thread: Re: [Q] how to tell when drawing is done?
  • Next by thread: How many file types?
  • Index(es):
    • Date
    • Thread