> On Nov 11, 2019, at 15:07 , Steve Christensen via Cocoa-dev 
> <cocoa-dev@lists.apple.com> wrote:
> 
> Some existing Obj-C methods are of the form:
> 
>       + (nullable __kindof NSManagedObject) someFooThing;
> 
> Right now I have
> 
>       class var someFooThing: NSManagedObject?

AFAIK, “__kindof” only affects the ability to assign one Obj-C class pointer to 
a variable of a different but compatible (kind of) type. It doesn’t change the 
actual type of the variable, nor does it (again AFAIK) change the ability to 
assign without errors in Swift. Also see here for some informative discussion:

        https://stackoverflow.com/questions/31399208/ios-kindof-nsarray 
<https://stackoverflow.com/questions/31399208/ios-kindof-nsarray>

I suggest you ask about this on forums.swift.org <http://forums.swift.org/>. If 
there’s an alternative, someone there will know.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to