Re: NSTextField sendActionOn:

2010-01-17 Thread Brad Stone
I finally had a breakthrough! I'm not sure it's the "best" solution but it works and hopefully will be instructive for others trying to do the same thing connection views. There's a lot of steps (which is why I think it may not be the "best") so I'll try to be as clear as possible. 1) when a

Re: NSTextField sendActionOn:

2010-01-17 Thread jonat...@mugginsoft.com
On 17 Jan 2010, at 16:30, Brad Stone wrote: > Here's why I need this - I've been trying to solve this problem for 2 weeks! > > This issue all revolves around a NSCollectionView. Each CollectionViewItem > has a view containing a NSTextField, NSDatePicker, NSButton (checkbox), and > an NSLevelI

Re: NSTextField sendActionOn:

2010-01-17 Thread Brad Stone
Here's why I need this - I've been trying to solve this problem for 2 weeks! This issue all revolves around a NSCollectionView. Each CollectionViewItem has a view containing a NSTextField, NSDatePicker, NSButton (checkbox), and an NSLevelIndicator. The selection index of my CollectionView is b

Re: NSTextField sendActionOn:

2010-01-17 Thread Graham Cox
On 17/01/2010, at 3:56 PM, Brad Stone wrote: > I was able to capture the mouseDown event in the field but only in a subclass > which is causing me problems elsewhere. Indeed, a mouse click is not the only reason a field might become focused - the user could tab into it as well. Overriding -b

Re: NSTextField sendActionOn:

2010-01-17 Thread jonat...@mugginsoft.com
On 17 Jan 2010, at 04:56, Brad Stone wrote: > I tried that (textDidBeginEditing) but it fires only after the user hits a > key to begin typing, not when they first enter the field (i.e. the action > that makes the focus ring show up). I want to be notified as soon as the > user clicks in the f

Re: NSTextField sendActionOn:

2010-01-16 Thread Brad Stone
I tried that (textDidBeginEditing) but it fires only after the user hits a key to begin typing, not when they first enter the field (i.e. the action that makes the focus ring show up). I want to be notified as soon as the user clicks in the field to get the cursor in there. I was able to captu

Re: NSTextField sendActionOn:

2010-01-16 Thread Matthew Lindfield Seager
On Sunday, January 17, 2010, Brad Stone wrote: > The best I can do for the NSTextField is bind an action and in, IB, in the > TextFieldAttributes set "Action" to "Sent on End Editing"  which sends the > action after the first character is type.  I want the action sent as soon as > the field gai

NSTextField sendActionOn:

2010-01-16 Thread Brad Stone
I have an NSTextField and an NSDatePicker on a view. As soon as the user clicks into either on (and before they type anything) I want to send an action. I thought I'd use sendActionOn: but I can't get it to work. The best I can do for the NSTextField is bind an action and in, IB, in the TextF