• 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
using constants from Obj-c in swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using constants from Obj-c in swift


  • Subject: using constants from Obj-c in swift
  • From: Boyd Collier <email@hidden>
  • Date: Fri, 25 Sep 2015 11:43:39 -0700

In objective-c programs, there are places where one can write lines like the following:

[scrollview setBorderType:NSNoBorder];

with NSNoBoarder being specified in an enum in NSView.  But enums in swift are a different sort of beast, and I’ve not yet figured out what get the same job done.
Is there a straightforward way to do this?  (I’m using swift 2 in Xcode 7)

Boyd
_______________________________________________

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


  • Follow-Ups:
    • Re: using constants from Obj-c in swift
      • From: Marco S Hyman <email@hidden>
    • Re: using constants from Obj-c in swift
      • From: Charles Srstka <email@hidden>
  • Prev by Date: Re: swift: windowControllerDidLoadNib called twice
  • Next by Date: Re: using constants from Obj-c in swift
  • Previous by thread: Re: Generics Question
  • Next by thread: Re: using constants from Obj-c in swift
  • Index(es):
    • Date
    • Thread