• 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
Re: Displaying text in NSDrawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying text in NSDrawer


  • Subject: Re: Displaying text in NSDrawer
  • From: Stefan Pantke <email@hidden>
  • Date: Tue, 3 Feb 2004 08:07:08 +0100

Mark!

Am 03.02.2004 um 06:33 schrieb Mark:

I'm at a loss trying to display text in an NSDrawer.

I've got to the point where I can create an NSDrawer attached to a window
with a button that toggles the drawer open and closed. I've even modified
the content view to contain an NSTextView object and the blank textView
shows up fine. I just want the drawer to display logging information.

My controller object contains the following outlet:
IBOutlet NSTextView *logWindow;

You would better name it lowTextViewOL or something like that,
to indicate it is an outlet and that it is a TextView, no Window.

I connect the outlet of my controller object directly to the NSTextView
using Interface builder.

OK, should be fine.

Elsewhere in my controller code, in response to a menu selection, I make the
following call with no errors:

[logWindow insertText:@"Add Entry Called"];

OK, should be fine as well and insert at cursor location or the complete
selected text.

The result is that I get nothing in the TextView of my drawer.

I suppose, you see the TextView. If not, it my be some sizing problem,
so that cocoa resized/repositened your TextView. But I suppose,
this is not the problem

Then, just as another datapoint, I added another NSTextView directly to my
main window and called it logWindow2. I added the outlet to my controller,
wired it up in interface builder and made a call just after the original
logWindow call and it works as expected.


Am I not allowed to directly access a control on the NSDrawer instance? Do I
have to go "through" the drawer object somehow (if so why didn't I get some
kind of error?)?

You may perform any operation in a drawer's view, since it it
nothing special...

Sorry, to not provide more information. It's a bit hard give any advice
in this situation.

Could you provide the source-code?

Kind regards,

Stefan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • RE: Displaying text in NSDrawer
      • From: "Mark" <email@hidden>
References: 
 >Displaying text in NSDrawer (From: "Mark" <email@hidden>)

  • Prev by Date: Re: Recommendations for storing text messages in data files
  • Next by Date: Re: Recommendations for storing text messages in data files
  • Previous by thread: Displaying text in NSDrawer
  • Next by thread: RE: Displaying text in NSDrawer
  • Index(es):
    • Date
    • Thread