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

NSFileWrapper not accepting local disks


  • Subject: NSFileWrapper not accepting local disks
  • From: Robert Kuilman <email@hidden>
  • Date: Fri, 30 Jan 2004 03:54:00 +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: Disabling_Expose_for_some_windows,_some_day?
  • Next by Date: Highlighting NSImageCells in an NSMatrix
  • Previous by thread: Re: Finder-like Color Labels
  • Next by thread: Highlighting NSImageCells in an NSMatrix
  • Index(es):
    • Date
    • Thread