Is there any way to combine the for and if-let into one line that gives me 
unwrapped NSURL objects to work on? I believe the enumerator (which came from 
NSFileManager) will only have valid NSURLs in it.

    for item in enumerator!
    {
        if let url = item as? NSURL
        {
            let sid = url.lastPathComponent!
            print("Found: \(sid), \(url.path)")
            processModel(url)
        }
    }


-- 
Rick Mann
[email protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to