Preventing oddball window subview/control behavior
Preventing oddball window subview/control behavior
- Subject: Preventing oddball window subview/control behavior
- From: Kirk Kerekes <email@hidden>
- Date: Fri, 24 May 2002 12:57:16 -0500
If you create a re-sizable window with controls and static text items in it,
I strongly recommend that you initially create all items in IB (where
applicable) with visible borders. This helps visually clarify (in Test
Interface) what happens when you make subtle errors in the "size" settings,
and cause a static NSTextField to overlap an active control when the
window is resized.
I ran into this when I put two text fields and a horizontal slider like
this:
TEXTFIELD --------------O------------------- TEXTFIELD
-- at the bottom of a resize capable window. When resized, the window
LOOKED OK, but the slider stopped working correctly. Adding borders to the
textfields revealed that I had inappropriately set them to SCALE with the
resize, and not just float appropriately.
"I'm not stupid -- some things are just...
OK, sometimes I AM stupid."
_______________________________________________
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.