Re: Substituting instance of cell subclass for instance of superclass

2016-11-15 Thread James Walker
On 11/11/2016 6:27 PM, Kyle Sluder wrote: On Fri, Nov 11, 2016, at 07:34 PM, James Walker wrote: I want to replace (for example) an instance of NSButtonCell with an instance of my own subclass of NSButtonCell on the fly. Now, I know that's not a common thing to want to do; normally, you'd edit

Re: Substituting instance of cell subclass for instance of superclass

2016-11-12 Thread Jonathan Mitchell
> On 12 Nov 2016, at 01:34, James Walker wrote: > > However, the new cell has failed to copy much of the state of the old one. > Things like title, font, target, action, bezelStyle... I can manually copy > anything that I notice is missing, but I'm just wondering

Re: Substituting instance of cell subclass for instance of superclass

2016-11-11 Thread Kyle Sluder
On Fri, Nov 11, 2016, at 07:34 PM, James Walker wrote: > I want to replace (for example) an instance of NSButtonCell with an > instance of my own subclass of NSButtonCell on the fly. Now, I know > that's not a common thing to want to do; normally, you'd edit the nib to > use whatever cell

Substituting instance of cell subclass for instance of superclass

2016-11-11 Thread James Walker
I want to replace (for example) an instance of NSButtonCell with an instance of my own subclass of NSButtonCell on the fly. Now, I know that's not a common thing to want to do; normally, you'd edit the nib to use whatever cell class you want. But I'd like to be able to do it to an NSAlert,