• 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: prompt display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prompt display


  • Subject: Re: prompt display
  • From: Roland Silver <email@hidden>
  • Date: Mon, 9 May 2005 08:44:38 -0600

Anish,
Thanks for your reply; I tried the following, but "Fubar" is not displayed in the text view until the "Open"event which caused the code fragment to be performed was completed.

NSString *aString;
aString = [NSString stringWithCString:"Fubar"];
[textView insertText:aString];
[textView setNeedsDisplay:YES];

The message is only displayed after [NSApplication sendEvent:] returns to [NSApplication run].
----------------------------------------------
On May 9, 2005, at 6:56 AM, Anish Kumar wrote:
I think you need to redraw your Textview after updating it with "insertText" method. You can call
the method [textView setNeedsDisplay:YES]; immediately after the "insertText" method"

Hope this may solve your problem. Happy programming!
 _______________________________________________
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: prompt display
      • From: SA Dev <email@hidden>
References: 
 >Re:prompt display (From: Anish Kumar <email@hidden>)

  • Prev by Date: Re: NSDocument for a multi-window application
  • Next by Date: Re: prompt display
  • Previous by thread: Re:prompt display
  • Next by thread: Re: prompt display
  • Index(es):
    • Date
    • Thread