Re: First responder not coming back to container after editing with NSTextField

2015-09-29 Thread dangerwillrobinsondanger
So at that event or at the beginning of it resign first responder and manually set the next responder. You may need some logic to decide what is the next responder. You may also need to ask the window to recalculate the next responder chain in it. Sent from my iPhone > On Sep 29, 2015, at 7:

Re: First responder (?) problem, and orphaned highlight boxes

2015-04-15 Thread Quincey Morris
On Apr 15, 2015, at 13:30 , Aandi Inston wrote: > > 2. As a quick fix, is there a way to make sure this highlight box > disappears with the > control that it is (to my mind) attached to? It’s probably being drawn around the field editor, and perhaps that’s not being dismissed properly when you

Re: First Responder

2012-05-12 Thread Motti Shneor
On 11 במאי 2012, at 03:11, koko wrote: > I have a menu item connected to an action in First Responder; > The action exists in an NSView subclass. > The subclass implements acceptsFirstResonder and return YES. > The subclass implements validateMenuItem and return YES; > When the menu displays the me

Re: First Responder

2012-05-11 Thread koko
Thanks for the courtesy of an edifying reply ... koko now grok more better. On May 11, 2012, at 4:25 PM, Graham Cox wrote: > > On 11/05/2012, at 11:56 PM, koko wrote: > >> But what good is the responder chain if all views that acceptFirstResponder >> are not part of it ? > > > Because the

Re: First Responder

2012-05-11 Thread Graham Cox
On 11/05/2012, at 11:56 PM, koko wrote: > But what good is the responder chain if all views that acceptFirstResponder > are not part of it ? Because the purpose of the responder chain is to provide a context for the keyboard and other shared inputs, like the menu bar. While the user can click

Re: First Responder

2012-05-11 Thread koko
On May 11, 2012, at 8:28 AM, Fritz Anderson wrote: > Your understanding that only the focused view (among views) can be first > responder is correct. This is reflected in "responder" being singular and not > plural. koko grok ___ Cocoa-dev mailing

Re: First Responder

2012-05-11 Thread Fritz Anderson
On 11 May 2012, at 8:56 AM, koko wrote: > Now, if what is being said is that a view cannot participate in this process > until the user clicks the view, well ok. But what good is the responder chain > if all views that acceptFirstResponder are not part of it ? Your understanding that only the f

Re: First Responder

2012-05-11 Thread koko
On May 11, 2012, at 4:25 AM, Gregory Weston wrote: > Absent from this narrative: Any indication that you have reason to believe > your view has actually *become* the first responder. The Window contains many views, each with a particular function to the application. Now, this may be y ignora

Re: First Responder

2012-05-10 Thread Gregory Weston
koko wrote: > I have a menu item connected to an action in First Responder; > > The action exists in an NSView subclass. > > The subclass implements acceptsFirstResonder and return YES. > > The subclass implements validateMenuItem and return YES; > > When the menu displays the menu item is dis

Re: First Responder

2012-05-10 Thread Conrad Shultz
On 5/10/12 4:24 PM, koko wrote: > I have a menu item connected to an action in First Responder; > > The action exists in an NSView subclass. > > The subclass implements acceptsFirstResonder and return YES. > > The subclass implements validateMenuItem and return YES; > > When the menu displays t

Re: First Responder

2012-05-10 Thread Erik Stainsby
Could you please paste the a copy of the method in a message? It is far easier to help you debug code which we can see than a description of something we cannot see. Erik Stainsby erik.stain...@roaringsky.ca - On 2012-05-10, at 5:07 PM, koko wrote: > >

Re: First Responder

2012-05-10 Thread koko
On May 10, 2012, at 6:05 PM, Erik Stainsby wrote: > I have had this happen when I have forgotten to declare my action method in > the public header. The action is declared in the subclass header. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: First Responder

2012-05-10 Thread koko
On May 10, 2012, at 6:05 PM, Stephen J. Butler wrote: > Does your subclass implement the action that the menu item is looking > for? Your view subclass won't be chosen as the first responder if it > doesn't implement the action Yes, the subclass implements the action. __

Re: First Responder

2012-05-10 Thread Erik Stainsby
I have had this happen when I have forgotten to declare my action method in the public header. Erik Stainsby erik.stain...@roaringsky.ca - On 2012-05-10, at 4:24 PM, koko wrote: > I have a menu item connected to an action in First Responder; > > The acti

Re: First Responder

2012-05-10 Thread Stephen J. Butler
On Thu, May 10, 2012 at 6:24 PM, koko wrote: > I have a menu item connected to an action in First Responder; > > The action exists in an NSView subclass. > > The subclass implements acceptsFirstResonder and return YES. > > The subclass implements validateMenuItem and return YES; > > When the menu

Re: First Responder

2011-02-27 Thread Gerriet M. Denkmann
On 27 Feb 2011, at 19:33, Graham Cox wrote: > > On 26/02/2011, at 6:19 PM, koko wrote: > >> Did you know that the average vocabulary is less that 200 words? And I be >> penchant is not in that set. > > There are almost 1 million distinct words in English. "The Global Language Monitor annou

Re: First Responder

2011-02-26 Thread Graham Cox
On 26/02/2011, at 6:19 PM, koko wrote: > Did you know that the average vocabulary is less that 200 words? And I be > penchant is not in that set. There are almost 1 million distinct words in English. 200 is considered the bare minimum that a non-native speaker needs to learn to "get by". It's

Re: First Responder

2011-02-25 Thread koko
Good lesson. At least I know I am not twisting things around the axel. (as in my earliest Cocoa dev attempts, sacre bleu!) Thanks ! -koko On Feb 26, 2011, at 12:25 AM, Kyle Sluder wrote: > On Fri, Feb 25, 2011 at 11:19 PM, koko wrote: >> Penchant is a great word. Did you know that the avera

Re: First Responder

2011-02-25 Thread Kyle Sluder
On Fri, Feb 25, 2011 at 11:19 PM, koko wrote: > Penchant is a great word. Did you know that the average vocabulary is less > that 200 words? And I be penchant is not in that set. > > I guess I should rethink my design although I got around things by getting a > pointer the Menu Item and then set

Re: First Responder

2011-02-25 Thread koko
Penchant is a great word. Did you know that the average vocabulary is less that 200 words? And I be penchant is not in that set. I guess I should rethink my design although I got around things by getting a pointer the Menu Item and then setting its target to be my object. I just thought this

Re: First Responder

2011-02-25 Thread Kyle Sluder
On Fri, Feb 25, 2011 at 10:18 PM, koko wrote: > Really!  So just do > >  [window makeFirstResponder:object]: > > Wow. too much work. > > [object makeFirstResponder} NO! You have this penchant for not reading documentation. http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Eve

Re: First Responder

2011-02-25 Thread koko
Really! So just do [window makeFirstResponder:object]: Wow. too much work. [object makeFirstResponder} On Feb 25, 2011, at 11:11 PM, Graham Cox wrote: > > On 26/02/2011, at 5:05 PM, koko wrote: > >> The object is a subclass of NSResponder with overridden >> acceptsFirstResponder to return

Re: First Responder

2011-02-25 Thread Graham Cox
On 26/02/2011, at 5:05 PM, koko wrote: > The object is a subclass of NSResponder with overridden acceptsFirstResponder > to return yes. That still doesn't make it part of the responder CHAIN. You have to put it in the chain. --Graham ___ Cocoa-d

Re: First Responder

2011-02-25 Thread koko
The object is a subclass of NSResponder with overridden acceptsFirstResponder to return yes. -koko On Feb 25, 2011, at 10:59 PM, Kyle Sluder wrote: > On Feb 25, 2011, at 9:31 PM, koko wrote: > >> I connect a menu item to an action in first responder. The action is defined >> in a .h and .m

Re: First Responder

2011-02-25 Thread Graham Cox
On 26/02/2011, at 4:31 PM, koko wrote: > I connect a menu item to an action in first responder. The action is defined > in a .h and .m in the project > > In applicationDidFinishLaunching I alloc, init and retain an object that > contains the action connected to the menu item in first responder

Re: First Responder

2011-02-25 Thread Kyle Sluder
On Feb 25, 2011, at 9:31 PM, koko wrote: > I connect a menu item to an action in first responder. The action is defined > in a .h and .m in the project > > In applicationDidFinishLaunching I alloc, init and retain an object that > contains the action connected to the menu item in first respond

Re: First responder status and field editor

2010-08-17 Thread Kyle Sluder
On Tue, Aug 17, 2010 at 12:55 PM, vincent habchi wrote: > just a tiny question: I have a NSTextField whose field editor is customized. > When I click inside to begin typing text, to my surprise, its (that is, the > NSTextField) -(BOOL)resignFirstResponder gets called, which is rather > unexpect

Re: first responder

2010-03-15 Thread Graham Cox
On 16/03/2010, at 8:21 AM, k...@highrolls.net wrote: > Can all three views be active in the responder chain without having to first > click the view? Only if they have a parent-child relationship. If they are siblings, then no. (Obvious really, if you had two side-by-side views both "first" r

Re: first responder being clobbered

2009-10-27 Thread Michael Link
It is different, UIWindow doesn't have a method -makeFirstResponder. When I was trying to figure this out I had assumed UIWindow had a firstResponder outlet just like NSWindow but it doesn't. Of course it's possible to extend the class to access the iv. -- Michael On Oct 26, 2009, at 10:59

Re: first responder being clobbered

2009-10-26 Thread glenn andreas
On Oct 26, 2009, at 10:55 PM, Michael Link wrote: I have a custom UITableViewController that uses a custom cell that displays a text field. I have this method added to the table view controller to set the text field as first responder - (void)viewWillAppear:(BOOL)animated { [super

Re: first responder being clobbered

2009-10-26 Thread Dave DeLong
Nope. In CocoaTouch, you can explicitly assign a UIResponder to be first responder by sending it the -becomeFirstResponder message. There is no "makeFirstResponder" method. IMO, this is one of the improvements of CocoaTouch over Cocoa. The responder system seems to be better organized.

Re: first responder being clobbered

2009-10-26 Thread Graham Cox
On 27/10/2009, at 2:55 PM, Michael Link wrote: Is there a different solution to getting a first responder in a table cell and not having it resign on 3.1? I'm unfamiliar with the iPhone version of Cocoa and whether its rules are different, but certainly on the Mac you shouldn't invoke -

Re: first responder stopped working

2008-12-14 Thread Sean Murphy
On Dec 13, 2008, at 11:50 PM, John Nairn wrote: My application frequently recreates a window which involves deleting all the subviews and adding new ones (while keeping the window open). It used to work, but now when it reloads, it fails to accept the one view I designate to the be the firs

Re: First responder design question. Are controllers in the chain?

2008-09-11 Thread Seth Willits
On Sep 11, 2008, at 7:59 AM, David wrote: I've been conceptually thinking of the document as part of the model. The first responder chain in the document architecture goes through the view hierarchy and checks the document. View -> Window -> Window Delegate -> Window Controller -> Document N

Re: First Responder, NSUndoManager, and MyDocument

2008-07-23 Thread Todd Heberlein
Because it's handled by something earlier in the responder chain. Your document isn't going to be first responder. Got it. Thanks! I didn't realize my document was so *far* down the list, but it all makes sense now. I should have known better. Thanks again, Todd _

Re: First Responder, NSUndoManager, and MyDocument

2008-07-23 Thread Seth Willits
On Jul 23, 2008, at 2:10 PM, Todd Heberlein wrote: What gives? Why doesn't an undo: message get sent to my MyDocument object? Because it's handled by something earlier in the responder chain. Your document isn't going to be first responder. See figure 1-10. http://developer.apple.com/docu

Re: First Responder and taborder?

2008-06-16 Thread Ken Thomases
On Jun 16, 2008, at 7:52 PM, William Squires wrote: Dumb question expecting a dumb answer here... 1) I know the First Responder sets which control in a window gets the focus, but what about if you app has multiple windows, each of which has several controls which could get the focus (when th