• 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(2): is [uiObject display] necessary ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re(2): is [uiObject display] necessary ?


  • Subject: Re(2): is [uiObject display] necessary ?
  • From: Jens Bauer <email@hidden>
  • Date: Wed, 5 Dec 2001 13:51:06 +0100

Hi John,

On Wed, 5 Dec, 2001, John Hvrnkvist <email@hidden> wrote:

>
>On Wednesday, December 5, 2001, at 11:04 , Jens Bauer wrote:
>
>> I'd like to know if there is any reason for [object display]; in
>> situations like these...
>/.../
>> [icon setImage[NSImage imageNamed:@"Yep"]]];
>> [icon display];
>
>It's generally not needed. And even if it was needed, this would usually
>be the wrong way to do it.
>
>When you do need to make something refresh, you call [icon
>setNeedsDisplay:YES], allowing the system to aggregate display calls.

Will this update the object immediately, or will it wait till the system
runs through a list of objects that needs to be updated (a'la "post" an
event) ?


Love,
Jens


References: 
 >Re: is [uiObject display] necessary ? (From: John Hörnkvist <email@hidden>)

  • Prev by Date: Re: Frameworks Inside Applications
  • Next by Date: Application localization
  • Previous by thread: Re: is [uiObject display] necessary ?
  • Next by thread: Re: is [uiObject display] necessary?
  • Index(es):
    • Date
    • Thread