Re: NSTextView setHidden difficulty
Re: NSTextView setHidden difficulty
- Subject: Re: NSTextView setHidden difficulty
- From: Paul Lynch <email@hidden>
- Date: Fri, 31 Mar 2006 06:51:41 +0100
On 31 Mar 2006, at 02:15, Bobby B wrote:
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".
If you are using the IB inspector to set hidden, it doesn't seem to
do the same thing as sending "setHidden:YES" to the NSTextView. It
hides it, but I have no idea which part of the view hierarchy it is
really hiding - it isn't the NSTextView or the NSScrollView. I
suggest you set the initial state of your text view in awakeFromNib,
and see if that improves things.
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.
The return from isHidden isn't an object value (%@), it's a BOOL.
Use %d, see:
http://developer.apple.com/documentation/Cocoa/Conceptual/
DataFormatting/Articles/FormatStrings.html
Paul
_______________________________________________
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