Re: [swift-users] Cannot subclass a class with objc_subclassing_restricted attribute

2017-04-17 Thread Rick Mann via swift-users
> On Apr 17, 2017, at 08:54 , Joe Groff wrote: > > >> On Apr 14, 2017, at 7:41 PM, Rick Mann via swift-users >> wrote: >> >> I'm refactoring some Objective-C code to inherit from a new Swift super >> class. This has been going okay, and I've been cleaning up build errors as I >> spot them

[swift-users] Can't access Swift class from Objective-C

2017-04-17 Thread Rick Mann via swift-users
My Objective-C file is importing "Module-Swift.h", and that file has some of my other Swift classes, but not the one I just wrote. I've tried making the class public, but I didn't need to do that on any of the others. I've tried cleaning the build folder of my Xcode project, but I get the same

[swift-users] Importing empty C structs

2017-04-17 Thread Rick Mann via swift-users
I'm trying to make a module out of a C library and header file. It has at least one empty struct: struct lgs_context_t {}; and a function: LGS_EXPORT struct lgs_context_t* lgs_init(const lgs_context_params_t* params); Swift sees the function, I can call it and assign the result to a variable,

Re: [swift-users] More liberal logo licensing

2017-04-17 Thread Allen Denison via swift-users
David We are planning on posting very liberal rules for using a set of Swift logos on Swift.org in the future. In the meantime, if you have a specific use in mind and you’re wondering if it fits within our guidelines, you can send the specifics to permiss...@apple.com to confirm whether it do

Re: [swift-users] Cannot subclass a class with objc_subclassing_restricted attribute

2017-04-17 Thread Joe Groff via swift-users
> On Apr 14, 2017, at 7:41 PM, Rick Mann via swift-users > wrote: > > I'm refactoring some Objective-C code to inherit from a new Swift super > class. This has been going okay, and I've been cleaning up build errors as I > spot them (some auxiliary enums caused enum name changes, etc.). > >

Re: [swift-users] Cannot subclass a class with objc_subclassing_restricted attribute

2017-04-17 Thread Rod Brown via swift-users
> On 18 Apr 2017, at 12:01 am, Rod Brown via swift-users > wrote: > > Hi Rick, > > Unfortunately, that is the case. You cannot subclass a Swift class (even if > it is a subclass of NSObject and available to the Objective-C runtime) > because of deliberate limitations baked into Obj-C to bloc

Re: [swift-users] Cannot subclass a class with objc_subclassing_restricted attribute

2017-04-17 Thread Rod Brown via swift-users
Hi Rick, Unfortunately, that is the case. You cannot subclass a Swift class (even if it is a subclass of NSObject and available to the Objective-C runtime) because of deliberate limitations baked into Obj-C to block subclassing Swift classes in Obj-C code. I believe the reason for this limitat

Re: [swift-users] Cannot subclass a class with objc_subclassing_restricted attribute

2017-04-17 Thread Rick Mann via swift-users
> On Apr 14, 2017, at 22:33 , Guillaume Lessard > wrote: > > Your class probably needs to be declared as open. > > @objc open class Camera : NSObject {} Thanks. Sadly, that does not fix it. > Guillaume Lessard > >> On Apr 14, 2017, at 20:41, Rick Mann via swift-users >> wrote: >> >> I'

[swift-users] TWISt-shout Newsletter 2017-04-17

2017-04-17 Thread Kenny Leung via swift-users
Hi All. Here is your TWISt-shout Newsletter for the week of 2017-04-10 to 2017-04-16 https://github.com/pepperdog/TWISt-shout/blob/master/2017/TWISt-shout-2017-04-17.md Enjoy! -Kenny