• 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: SA Dev <email@hidden>
  • Date: Tue, 10 May 2005 06:20:27 -0400


Terse suggestions are my specialty. :-D Just remember to use your CPU cycles wisely. If this is a top-level view with many subviews and you're doing this rapidly in a loop, your app's performance will likely suffer. If it doesn't absolutely have to be there right away, you can just setNeedsDisplay to flag it for drawing later.




On May 9, 2005, at 11:17 PM, 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: Spotlight categories
  • Next by Date: Re: Using NSUserDefaults with my own prefs file
  • Previous by thread: Re: prompt display
  • Next by thread: Conversion from CMBitmap to NSBitmapImageRep
  • Index(es):
    • Date
    • Thread