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:
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
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
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
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
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
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
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
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
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
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:
>
>
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
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.
__
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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 -
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
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
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
_
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
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
37 matches
Mail list logo