• 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: Anish Kumar <email@hidden>
  • Date: Tue, 10 May 2005 10:47:20 +0530

Hi,

Thanks for problem Roland faced, Now I remember for life whats the difference between "display" and "setNeedsDisplay" methods. display method will redraw the view immediately after being called and "setNeedsDisplay" method will redraw the view only in next application’s event loop.

I had ignored the difference for a while and was using the both the methods freely!

thanks,
-Anish

Roland Silver wrote:


SA Dev, thanks! your terse suggestion did the trick:

[textView display];
------------------------------
The context was

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];



_______________________________________________
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


References: 
 >Re: prompt display (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: NSAppleScript with threading
  • Next by Date: Sorting problems with NSArrayController and a value transformer
  • Previous by thread: Re: prompt display
  • Next by thread: Re: prompt display
  • Index(es):
    • Date
    • Thread