Re: Need Help with Swift

2015-12-06 Thread Stevo Brock
So, as it turns out, when I went to start “cleaning things up”, things started to get ugly again. In the end, given some other small design changes and the crazy amounts of time this was sucking up, I ended up just ripping it all out and going with straight-up classes and just subclassing and d

Re: Need Help with Swift

2015-12-04 Thread Roland King
> On 4 Dec 2015, at 16:07, Stevo Brock wrote: > > This seems to do the trick. > > I wasn’t able to just do ABC.class, as the “.class” wasn’t registered as > valid. > > What I ended up with was a static method on the class, and calling the static > method, and voilà! Everything is working. >

Re: Need Help with Swift

2015-12-04 Thread Stevo Brock
This seems to do the trick. I wasn’t able to just do ABC.class, as the “.class” wasn’t registered as valid. What I ended up with was a static method on the class, and calling the static method, and voilà! Everything is working. So now to clean things up… Thanks guys so much for your help. -

Re: Need Help with Swift

2015-12-04 Thread Stevo Brock
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 > wr

Re: Need Help with Swift

2015-12-03 Thread Roland King
> On 4 Dec 2015, at 15:42, Stevo Brock wrote: > > So strange… > > I added > > class IB_MediaItemViewController_PhotoMediaItemView : > MediaItemViewController > { > } > > and used IB_MediaItemViewController_PhotoMediaItemView in the Storyboard, and > I still see this error: > > 2015-12-03 2

Re: Need Help with Swift

2015-12-03 Thread Quincey Morris
On Dec 3, 2015, at 23:30 , Roland King 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.MediaI

Re: Need Help with Swift

2015-12-03 Thread Stevo Brock
So strange… I added class IB_MediaItemViewController_PhotoMediaItemView : MediaItemViewController { } and used IB_MediaItemViewController_PhotoMediaItemView in the Storyboard, and I still see this error: 2015-12-03 23:35:52.400 Media Tools[14523:313526] Unknown class _TtC11Media_Tools45IB_Me

Re: Need Help with Swift

2015-12-03 Thread Roland King
> On 4 Dec 2015, at 15:24, Stevo Brock wrote: > > Hi Roland, > > I think you’re right. The trick is - what do I put in the Storyboard such > that it sticks (and IB doesn’t just change it back) and resolves at runtime? Quincey had one idea - but I don’t know how you @objcname a specialisatio

Re: Need Help with Swift

2015-12-03 Thread Stevo Brock
Hi Roland, I think you’re right. The trick is - what do I put in the Storyboard such that it sticks (and IB doesn’t just change it back) and resolves at runtime? -Stevo Brock Owner Sunset Magicwerks, LLC www.sunsetmagicwerks.com @SunsetMagicwrks 818-478-9758 > On Dec 3, 2015, at 11:17 PM,

Re: Need Help with Swift

2015-12-03 Thread Quincey Morris
On Dec 3, 2015, at 23:12 , Stevo Brock wrote: > > The Module field is empty. The MediaItemViewController was loading fine > until I decided to add the protocol and all the subsequent decoration.. Well, I realized afterwards that your view controller class is generic. Maybe you need to specify

Re: Need Help with Swift

2015-12-03 Thread Roland King
> On 4 Dec 2015, at 14:45, Stevo Brock wrote: > > I’m trying to set up a UIViewController than can host a number of different > UIViews as long as they adhere to a given protocol. I’ve worked through > getting things set up to make the compiler happy, but I’m getting a runtime > error loadin

Re: Need Help with Swift

2015-12-03 Thread Stevo Brock
Hi Quincey, The Module field is empty. The MediaItemViewController was loading fine until I decided to add the protocol and all the subsequent decoration.. -Stevo Brock Owner Sunset Magicwerks, LLC www.sunsetmagicwerks.com @SunsetMagicwrks 818-478-9758 > On Dec 3, 2015, at 10:53 PM, Quince

Re: Need Help with Swift

2015-12-03 Thread Quincey Morris
On Dec 3, 2015, at 22:45 , Stevo Brock wrote: > > 2015-12-03 22:07:23.966 Media Tools[14143:276368] Unknown class > _TtC11Media_Tools23MediaItemViewController in Interface Builder file. > Could not cast value of type 'UIViewController' (0x10d1dfd60) to > 'Media_Tools.MediaItemViewController' >

Need Help with Swift

2015-12-03 Thread Stevo Brock
I’m trying to set up a UIViewController than can host a number of different UIViews as long as they adhere to a given protocol. I’ve worked through getting things set up to make the compiler happy, but I’m getting a runtime error loading the view controller from the storyboard. Below is the re