Re: NSMatrix problem
Re: NSMatrix problem
- Subject: Re: NSMatrix problem
- From: Ricky Sharp <email@hidden>
- Date: Fri, 12 Nov 2004 08:36:32 -0600
On Friday, November 12, 2004, at 06:50AM, MT <email@hidden> wrote:
>In IB I have an NSMatrix with two radio buttons in it , I have
>stretched out the matrix to leave a gap in between the two radio
>buttons. In this gap I have put an NSTextField (Just on top of the
>NSMatrix, not inside it or anything). No matter how much I send the
>NSMatrix to the back, and send to the NSTextfield to the front, I can't
>get focus on the NSTextField.
>
>The cursor changes to the caret icon, when the pointer is over the
>NSTextField, but it doesn't work. If I tell the NSMatrix to draw
>Background, it draws over the NSTextField, even though it is behind it.
>
>I know if I used useOptimizedDrawing: this could happen, but I'm not,
>and this problem can be seen within IB.
>
>Is this a bug, or am I just doing it wrong?
I don't think what you're doing is supported as it involves overlapping views. Since it sounds like your edit field belongs to the first (top) radio button, how about re-arranging your radio buttons from:
(*) Radio 1
[ edit field ]
(*) Radio 2
to:
(*) Radio 2
(*) Radio 1
[ edit field]
That way, you don't have to stretch the NSMatrix or have overlapping views.
Or, place your edit field to the right of the first radio button if you cannot change the button order.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden