Re: Custom NSCell mouse events

2010-06-15 Thread Michael Hanna
Thanks for the suggestion Corbin. It looks like I'm doing everything OK with creation and destruction though. Here is my code: - (id)init { if ((self = [super init])) { _checkboxCell = [[NSButtonCell alloc] init]; [_checkboxCell setButtonType:NSSwitchButton]; [_checkbox

Re: Custom NSCell mouse events

2010-06-14 Thread Corbin Dunn
On Jun 10, 2010, at 9:43 AM, Michael Hanna wrote: > OK I'm really stumped on this one. I want to make a checkbox with a > NSTextFieldCell combined together. It's important that the checkbox > goes ON if the mouse hits the box, NOT the text. I've accomplished > this, more or less, but the issue is

Custom NSCell mouse events

2010-06-10 Thread Michael Hanna
OK I'm really stumped on this one. I want to make a checkbox with a NSTextFieldCell combined together. It's important that the checkbox goes ON if the mouse hits the box, NOT the text. I've accomplished this, more or less, but the issue is receiving the mouse event because I click one checkbox in a