using constants from Obj-c in swift
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