hey guys, got weird 1 here can't figure out. i've got custom view xib file, loading program using:
code:
[nsbundle loadnibnamed:@"basic" owner:self]; [window setcontentview:basicview];
now view loads, , displays fine. however, problem occurs when fetching information display, or sending information display. of works, of doesn't. instance, in section of code:
code:
} else if (shapebutton.indexofselecteditem == 1) { [dim1label setstringvalue:@"width:"]; [dim2label sethidden:yes]; [dim2field sethidden:yes]; the program recognizes shapebutton.indexofselecteditem equal 1(or whatever value is), doesn't have effect on label , textfield. i've checked xib file, , connections there, code isn't making connections.
got ideas what's wrong here?
run program. set breakpoint @ if. when breakpoint hit, or of dim1label, dim2label, dim2field null?
can discover using nslog, too, if don't know how use debugger set breakpoints , inspect variables, now's time learn.
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment