Files
swift-mirror/test/Interpreter/SDK/objc_factory_method.swift
Anna Zaks 505257ae9b API Notes: This contains audit for most of AppKit!
Plus, smaller enhancements on the other frameworks.
Removes the need for _PrintableNSObjectType hack (rdar://problem/16883288)

Swift SVN r22185
2014-09-22 21:47:22 +00:00

11 lines
278 B
Swift

// RUN: rm -rf %t && mkdir %t
// RUN: %target-build-swift -module-name FactoryTest %s -o %t/a.out
// RUN: %target-run %t/a.out | FileCheck %s
// REQUIRES: OS=macosx
import AppKit
let image = NSImage(named: NSImageNameTrashEmpty)
// CHECK: TrashEmpty
println(image!.name()!)