osx - How to repaint window after hide or show control -


i have nstextfield control on bottom of window. need show them or hide according condition.

in initial state control hidden. window shows blank space on control's position. when in runtime control should become visible

mptxtctrl.hidden = no; 

it not happen.

the tasks:

1 display/hide control.

2 resize main window according control's state.

i can't find tutorials how manage layouts in cocoa. grateful help!

when in runtime control should become visible

mptxtctrl.hidden = no; 

it not happen.

make sure connected mptxtctrl outlet text field in nib. having forgotten connect outlet leading cause of nothing happening.

i can't find tutorials how manage layouts in cocoa.

switch file inspector while editing nib , turn “use auto layout” on. xcode create constraints whenever place views along aqua guides (the blue lines appear when place , size views correctly), , cocoa enforce these constraints sizes of views , window change.

more info:


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -