> On 24 Jul 2015, at 8:00 am, Juanjo Conti <[email protected]> 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 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]