• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need Help with Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Need Help with Swift
      • From: Stevo Brock <email@hidden>
References: 
 >Need Help with Swift (From: Stevo Brock <email@hidden>)
 >Re: Need Help with Swift (From: Roland King <email@hidden>)
 >Re: Need Help with Swift (From: Stevo Brock <email@hidden>)
 >Re: Need Help with Swift (From: Roland King <email@hidden>)

  • Prev by Date: Re: Need Help with Swift
  • Next by Date: Re: Need Help with Swift
  • Previous by thread: Re: Need Help with Swift
  • Next by thread: Re: Need Help with Swift
  • Index(es):
    • Date
    • Thread