> On 24 Jul 2015, at 8:00 am, Juanjo Conti <jjco...@carouselapps.com> wrote:
> 
> I tried this code in Swift and got an error saying the constant is unknown:
> 
> addSubview(overlay, positioned: NSWindowAbove, relativeTo: nil)
> 
> -- 

Use the documentation, they have all the translations of enums to Swift in them 
linked off the original method. 

Declaration
SWIFT
enum NSWindowOrderingMode : Int 
<file:///Users/rols/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.OSX.docset/Contents/Resources/Documents/documentation/Swift/Reference/Swift_Int_Structure/index.html#//apple_ref/swift/struct/s:Si>
 {
    case Above
    case Below
    case Out
}

OBJECTIVE-C
_______________________________________________

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