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

Displaying text in NSDrawer


  • Subject: Displaying text in NSDrawer
  • From: "Mark" <email@hidden>
  • Date: Mon, 2 Feb 2004 22:33:10 -0700

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;

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

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

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

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

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?)?

Help, I've searched online and I now own many books on Cocoa development but
I still can't find a clue to my dilemma.

-mark
_______________________________________________
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: Stefan Pantke <email@hidden>
  • Prev by Date: Progress dialogs
  • Next by Date: Re: Recommendations for storing text messages in data files
  • Previous by thread: Progress dialogs
  • Next by thread: Re: Displaying text in NSDrawer
  • Index(es):
    • Date
    • Thread