Re: Need Help with Swift
Re: Need Help with Swift
- Subject: Re: Need Help with Swift
- From: Stevo Brock <email@hidden>
- Date: Fri, 04 Dec 2015 00:03:12 -0800
I think the trick with all these ideas is that IB will just remove the <…> when it good and well pleases and then you’re back to square one.
-Stevo Brock
Owner
Sunset Magicwerks, LLC
www.sunsetmagicwerks.com
@SunsetMagicwrks
818-478-9758
> On Dec 3, 2015, at 11:44 PM, Quincey Morris <email@hidden> wrote:
>
> On Dec 3, 2015, at 23:30 , Roland King <email@hidden <mailto: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