• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView setHidden difficulty
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTextView setHidden difficulty
      • From: Paul Lynch <email@hidden>
  • Prev by Date: Usage of NSKeyedArchiver
  • Next by Date: NSTask secretly a class cluster?
  • Previous by thread: Re: Usage of NSKeyedArchiver
  • Next by thread: Re: NSTextView setHidden difficulty
  • Index(es):
    • Date
    • Thread