Re: Need Help with Swift
Re: Need Help with Swift
- Subject: Re: Need Help with Swift
- From: Quincey Morris <email@hidden>
- Date: Thu, 03 Dec 2015 23:44:22 -0800
- Feedback-id: 167118m:167118agrif8a:167118s5Ui8QQxtq:SMTPCORP
On Dec 3, 2015, at 23:30 , Roland King <email@hidden> wrote:
>
> Quincey had one idea - but I don’t know how you @objcname a specialisation of a generic.
Well, yes, that’s a good objection.
It seems to me that the three things to try, if they haven’t been tried yet are:
1. class: Media_Tools.MediaItemViewController<Media_Tools.PhotoMediaItemView>
module: empty
2. class: MediaItemViewController<PhotoMediaItemView>
module: Media_Tools
3. class: MediaItemViewController< Media_Tools.PhotoMediaItemView>
module: Media_Tools
It looks like Swift classes have a stringified name that Obj-C is supposed to recognize, that includes an explicit “myModule.” prefix. My understanding is that the module field in IB adds the module, but it may not do so for the specialization. Whether the generic specialization is in the class name string is anybody’s guess.
_______________________________________________
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