Re: Proper target for table cell view buttons

2016-04-08 Thread Ken Thomases
On Apr 8, 2016, at 11:48 AM, Quincey Morris wrote: > > You could verify this by simply removing the target connection that’s causing > the warning, and see if the action method still ends up in the right place. This doesn't make sense, since the connection is also what specifies the action.

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread dangerwillrobinsondanger
> On Apr 8, 2016, at 7:32 PM, Graham Cox wrote: > > By exposing the bindings that an object supports and creating an Interface > Builder palette, you can make instances of your own classes bindable in > Interface Builder.” > > If this information is still correct, It's not. Not since Xcode

Re: Proper target for table cell view buttons

2016-04-08 Thread Quincey Morris
On Apr 8, 2016, at 08:53 , David Catmull wrote: > > I don’t see any additional nib files in the application package. It may not be a separate file, it may just be archived data that’s loaded as if a NIB file. Note that it is possible to register a custom NIB for a particular cell identifier, a

Re: Proper target for table cell view buttons

2016-04-08 Thread David Catmull
On Apr 7, 2016, at 1:23 PM, Quincey Morris wrote: > I don’t actually know the answer to the original question, but I wonder if > the problem is that (for a view-based table view) the cell view is archived > in a separate NIB file that’s generated when the storyboard or XIB containing > the tab

Re: Proper target for table cell view buttons

2016-04-08 Thread David Catmull
On Apr 7, 2016, at 11:45 AM, Fritz Anderson wrote: > > I’m curious about two things. > > (1) Which platform? OS X 10.11.3 > (2) Is your view controller not a table delegate already? I currently have the data source as the delegate, mainly because to me it makes more sense to have the delegat

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Nivek Research
For anyone interested I decided to implement a subclass of NSObjectController. Each NSMatrix object is removed from the NIB and replaced with individual NSRadioButtons. I then add an NSObjectController instance to the NIB for each NSMatrix replaced and set its class to RadioGroupController. I bi

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Graham Cox
> On 8 Apr 2016, at 10:32 PM, Graham Cox wrote: > > Your controller might, and could effect the binding in code, using -[NSObject > bind:toObject:withKeyPath:options:] and an outlet to the group view. As work > goes, that’s pretty minimal, and affects only the controller, as it should. I con

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Graham Cox
> On 8 Apr 2016, at 10:05 PM, Nivek Research wrote: > > Hi Graham, > I believe the part you are missing is the ability to use bindings and ideally > bindings setup in IB. So, according to the documentation: "NSView subclasses can expose additional key-value-coding/key-value-observing compli

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Nivek Research
Hi Graham, I believe the part you are missing is the ability to use bindings and ideally bindings setup in IB. The bulk of Sean McBride’s code simulates the binding behavior of NSMatrix (i.e., keeping a model property in sync with the visual display and vice versa) and his code does this only fo

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Graham Cox
> On 8 Apr 2016, at 8:44 PM, Graham Cox wrote: > > Off the top of my head I can imagine how this code would look and with due > respect to Sean, it would be a lot less complicated than RRRadioBinder. OK, here’s what I had in mind. Super simple, tested and works, though I ran into one small di

Re: Implementing Find panel in WebView

2016-04-08 Thread Graham Cox
> On 8 Apr 2016, at 6:15 PM, Mike Abdullah wrote: > > WebKit’s open source. Go have a peek in there and sadly you’ll discover that > although the find panel API is declared, it’s never been implemented. Oh poop. Thanks, at least it explains why it does nothing! —Graham ___

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Graham Cox
> On 8 Apr 2016, at 7:55 PM, Nivek Research wrote: > > The code Sean McBride provided shows the lengths one has to go to in order to > approximately replace the binds offered by NSMatrix. Again, I am not opposed > to the work, but it does seem like a giant leap backwards from the simplicity >

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread Nivek Research
Reworking the view controller to have a bunch of outlets to buttons is what I am trying to avoid. The original implementation simply bound the radio group (NSMatrix) either to a numeric property or to an object property on the model. The code Sean McBride provided shows the lengths one has to go

Re: Implementing Find panel in WebView

2016-04-08 Thread dangerwillrobinsondanger
That's some dense source to dig through :) That said Dash seems to have done it. The author, Bogdan, is pretty nice. It might be worth asking him about his implementation in Dash. Sent from my iPhone > On Apr 8, 2016, at 5:15 PM, Mike Abdullah wrote: > > WebKit’s open source. Go have a peek

Re: Implementing Find panel in WebView

2016-04-08 Thread Mike Abdullah
WebKit’s open source. Go have a peek in there and sadly you’ll discover that although the find panel API is declared, it’s never been implemented. Mike. > On 8 Apr 2016, at 05:46, Graham Cox wrote: > > Hi, > > I’m using WebView in my app, and I see it implements -performFindPanelAction: > do

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread dangerwillrobinsondanger
> On Apr 8, 2016, at 3:37 PM, Shane Stanley wrote: > > But that doesn't help with the problem of bindings for selectedIndex, does it? The point is you create a different property that gets set by the action method. Bind to that property. It reduces code but necessitates adding a comment t

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-08 Thread dangerwillrobinsondanger
It's hard to find. asciiwwdc site makes it discoverable. As far as I can tell it was only there (so in a video) but might be in some release notes though those often don't show up in searches. The programming guide docs are generally woefully out of date for controls that don't come inside of