• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSWindowAbove in Swift?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSWindowAbove in Swift? (From: Juanjo Conti <email@hidden>)

  • Prev by Date: NSWindowAbove in Swift?
  • Next by Date: Distinguishing "home" and "commercial" use
  • Previous by thread: NSWindowAbove in Swift?
  • Next by thread: Distinguishing "home" and "commercial" use
  • Index(es):
    • Date
    • Thread