NSFileWrapper not accepting local disks
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.