keyView madness
keyView madness
- Subject: keyView madness
- From: Tobias Hermann <email@hidden>
- Date: Tue, 13 May 2003 19:02:20 +0200
hi!
i am trying to make a custom NSControl that has some other controls
(like NSMatrix) as subviews.
I want to make my new Control act as if it was only ONE control. So the
subviews inside my view should never ever be a
nextKeyView
or
previousKeyView
of any other control around my control.
But I can't get this to work!! And why? Because there is no
setPreviousKeyView method. There is NSView's setNextKeyView but not
setPreviousKeyView. WHY? :-)
I am going mad!!
Example:
Consider a window with my control on it and a NSTextField underneath.
After adding some NSMatrices to my control, the TextField underneath my
control always reports an NSMatrix as previous keyview. but it should
ALWAYS have MY CONTROL as previous key view. I spent two days on this
now and I am giving up now!
The other way round (if a textField is above my control) is no problem,
because there is something called setNextKeyView.
Importnat: I can not make the hack that the subviews of my control are
set to setRefusesFirstResponder: YES ! Because they should become first
responder sometimes. otherwise noone could go around in my matrix with
the keyboard or such!
Any help is much appreciated because I am going really really mad :-)
Thanx!
Tobi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.