NSTextView setHidden difficulty
NSTextView setHidden difficulty
- Subject: NSTextView setHidden difficulty
- From: "Bobby B" <email@hidden>
- Date: Thu, 30 Mar 2006 21:15:00 -0400
Hello World :)
I'm having difficulty with something that seems like it should be very
simple. I have a NSTextView that has text bound to it, and starts off
"Hidden".
My outlet is:
IBOutlet NSTextView *quizAnswer;
And my code, that is run on the click of a button:
[quizAnswew setHidden:NO];
I followed NSTextView's ancestory and found it linked to NSView, and
this method (setHidden) should do what I'm asking it to. But it
doesn't do anything. I also looked at sample code from other people,
with on luck. To make sure everything was working, I polled the
quizAnswer TextView for some info:
NSLog(@":%@",[quizAnswer isHidden]);
NSLog(@":%@",[quizAnswer class]);
NSLog(@":%@",[quizAnswer string]);
2006-03-30 21:10:24.002 MacQuiz[9432] :(null)
2006-03-30 21:10:24.002 MacQuiz[9432] :NSTextView
2006-03-30 21:10:24.002 MacQuiz[9432] : The time delay between atrial
and ventricular contraction.
So it's returning a null value for whether or not it is hidden (and it
is hidden), even after I tell it to reveal itself. But it returns the
other data for it just fine. I even tried adding this stuff after the
setHidden:NO method:
[quizAnswerField display];
and/or
[quizAnswerField setNeedsDisplay:YES];
[quizAnswerField displayIfNeeded];
It seems like this should be so simple. Can anyone spot what error I am making?
Thank you kindly,
Bobby B
_______________________________________________
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