@jckarter last time I did it was to return something other than self from a constructor. This was totally valid in Obj-C...
-
-
- View other replies
-
@Javi A protocol extension initializer can reassign self, if that's the only reason you needed ObjC. - View other replies
-
@jckarter kind of, but I needed that to be the designated initializer :-/ - View other replies
-
@Javi To be able to super.init, it'd need to allocate the new object as the dynamic type but only allocate the base class part of the object -
@Javi s/only allocate/only initialize
-
-
-
-
@ndrewmcknight@zedshaw For macros we don't import, a C shim's your best bet. If it's just a binary flag you might try swiftc -D and#if. -
-
@ndrewmcknight@zedshaw To bring complex C macros into Swift, you can wrap them in your bridging header:https://gist.github.com/jckarter/093fd6486953704a690988aa232c6750 …
-
-
-
@rodbrown88 To help with that, Xcode can generate an interface from Swift files, under the assistant view as "Generated Interface". -
Tweet unavailable
-
@rodbrown88 Filed https://bugs.swift.org/browse/SR-1488 . Thanks again.
-
-
-
-
@Tricertops Not directly. 'performSelector' or dynamic dispatch via AnyObject should be able to generate any msgSend you'd need. - View other replies
-
@jckarter@Tricertops Isn't `performSelector` not available in Swift? I thought it and NSInvocation were marked as unavailable. - View other replies
-
@JadenGeller@Tricertops performSelector is available now, not sure about NSInvocation.
-
-
-
-
@matt_sven@zedshaw I think it's intended to be namespaced by the app's module name, but 'Module_Name_' sounds weird. cc@UINT_MIN -
@matt_sven Would definitely like more details here about the non-working code, if there are any to be had. //@jckarter - View other replies
-
-
@matt_sven@UINT_MIN Does fetchedObject.dynamicType produce the right class object in Swift? -
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Joe Groff
Javi
andrew mcknight
Tricer∴tops

Jaden Geller
Matt
Jordan Rose