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

Re: Overriding property attributes

2015-12-03 Thread Jens Alfke
AFAIK, ‘nonatomic’ is nothing more than a hint to the property synthesizer that it can create getter/setter methods that are faster but not thread-safe. That is, it only has effect inside the @implementation of the class, and no effect on callers. So it seems weird that you get a warning at all

Overriding property attributes

2015-12-03 Thread Jonathan Mitchell
Hi NSObject declares: @property(readonly, copy) NSString *description However, on occasion I may require a non atomic variant: @property (nonatomic, readonly, copy) NSString * description; My usage case involves using a code generator that outputs property declarations in a standardised way tha

Re: Best Control for a Matrix these days?

2015-12-03 Thread Lee Ann Rucker
Cool. We always support at least two versions, so I haven't dug into the 10.11 only stuff yet. > On Dec 3, 2015, at 11:38 AM, Alex Kac wrote: > > On El Capitan, NSCollectionView gives you the most control over row/column > layout possible since it mirrors iOS and you can write your own collect

Re: Best Control for a Matrix these days?

2015-12-03 Thread Alex Kac
On El Capitan, NSCollectionView gives you the most control over row/column layout possible since it mirrors iOS and you can write your own collection layout flow. > On Dec 3, 2015, at 11:54 AM, Lee Ann Rucker wrote: > > That doesn't give you enough control over row/column layout. How about nes

RE: Best Control for a Matrix these days?

2015-12-03 Thread Lee Ann Rucker
That doesn't give you enough control over row/column layout. How about nested NSStackViews? NSCollectionView -- Gary L. Wade (Sent from my iPad) https://urldefense.proofpoint.com/v2/url?u=http-3A__www.garywade.com_&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-

Re: Best Control for a Matrix these days?

2015-12-03 Thread Gary L. Wade
NSCollectionView -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 3, 2015, at 5:00 AM, Dave wrote: > > Hi, > > This is a Mac question, not iOS. > > Which Class is the latest best practise for displaying a matrix in a View. > > The matrix can be maximum 3 rows x 4 columns

Re: Best Control for a Matrix these days?

2015-12-03 Thread Dave
Hi Jonathan, Yes please, that would be good, thanks a lot. One thing though, I need this to be View Based rather Cell based, is that a problem? All the Best Dave > On 3 Dec 2015, at 16:46, Jonathan Mitchell wrote: > > >> On 3 Dec 2015, at 16:23, Jim Crate wrote: >> >> On Dec 3, 2015, at 8

Re: Best Control for a Matrix these days?

2015-12-03 Thread Jens Alfke
> On Dec 3, 2015, at 8:46 AM, Jonathan Mitchell wrote: > > I have found that an NSTableView can do the job with a bit of subclassed TLC. Or you can just make an NSView that adds a bunch of subviews in a grid. If your needs are simple this would be pretty easy to do. —Jens

Re: Best Control for a Matrix these days?

2015-12-03 Thread Jonathan Mitchell
> On 3 Dec 2015, at 16:23, Jim Crate wrote: > > On Dec 3, 2015, at 8:00 AM, Dave wrote: >> >> This is a Mac question, not iOS. >> >> Which Class is the latest best practise for displaying a matrix in a View. >> >> The matrix can be maximum 3 rows x 4 columns and each item contains a small

Re: Best Control for a Matrix these days?

2015-12-03 Thread Steve Mills
On Dec 03, 2015, at 10:23 AM, Jim Crate wrote: Maybe the NSMatrix class? https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSMatrix_Class/ That was deprecated in 10.10. Sent from iCloud's ridiculous UI, so, sorry about the formatting   _

Re: Best Control for a Matrix these days?

2015-12-03 Thread Jim Crate
On Dec 3, 2015, at 8:00 AM, Dave wrote: > > This is a Mac question, not iOS. > > Which Class is the latest best practise for displaying a matrix in a View. > > The matrix can be maximum 3 rows x 4 columns and each item contains a small > Icon type image and a Text String. Maybe the NSMatrix

Best Control for a Matrix these days?

2015-12-03 Thread Dave
Hi, This is a Mac question, not iOS. Which Class is the latest best practise for displaying a matrix in a View. The matrix can be maximum 3 rows x 4 columns and each item contains a small Icon type image and a Text String. I get an array of arrays and two parameters that tell me how many row

Helper tool

2015-12-03 Thread Jonathan Mitchell
I need to install a persistent always on launch daemon/agent for my app that queries an external URL and optionally communicates with the app if it is running. Is EvenBetterAuthorizationSample the current best practice? J ___ Cocoa-dev