Still making baby steps in Swift.

What am I doing wrong this time?

var fileObject:NSURL = ...
var err:NSError?
var value:Bool?
        
var gotValue = fileObject.getResourceValue( &value, forKey: NSURLIsAliasFileKey, error: &err ); // cannot call getResourceValue with this parameter list
        if gotValue
                {
                // use value!
                }
else { if let error = err { println("file object inspection failed: \ (error.localizedDescription)") }}

TIA,

Jan E.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to