Re: NSWindowAbove in Swift?
Re: NSWindowAbove in Swift?
- Subject: Re: NSWindowAbove in Swift?
- From: Roland King <email@hidden>
- Date: Fri, 24 Jul 2015 08:06:04 +0800
> On 24 Jul 2015, at 8:00 am, Juanjo Conti <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden