• 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: Real simple newbie question(s)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Real simple newbie question(s)


  • Subject: Re: Real simple newbie question(s)
  • From: Frederick Cheung <email@hidden>
  • Date: Sat, 24 Jul 2004 01:55:09 +0200

On 24 Jul 2004, at 01:40, Chris Griffin wrote:

I have written a very simple cocoa app. I started with the basic Cocoa app from XCode. I added a Controller.m file. In that I add a menu and menu item. That all works fine. The menu item calls a plugin. This is a plugin that I have written and the Cocoa app is for testing and showing how to call the plugin. The last thing that I want to do is display some text in the window that comes up by default. I have added an NSTextView to the window. My first question is how do I get to that object to set the text? The text is not editable and so doesn't need to be saved. I just want to display some text after my plugin is executed. I'm guessing that if I can get the NSTextView object from the window I can figure out how to set the text from the NSTextView docs. Thanks.

Use the setString: method. I'm guessing you looked at the NSTextView page in XCode and didn't see that method, this is because it's inherited from NSText. In general when looking at the docs for a class also look at the stuff it inherits.

Fred
_______________________________________________
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.
_______________________________________________
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.


References: 
 >Real simple newbie question(s) (From: Chris Griffin <email@hidden>)

  • Prev by Date: Real simple newbie question(s)
  • Next by Date: Re: NSOutlineView cells being truncated
  • Previous by thread: Real simple newbie question(s)
  • Next by thread: Re: Real simple newbie question(s)
  • Index(es):
    • Date
    • Thread