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

Re: is [uiObject display] necessary?


  • Subject: Re: is [uiObject display] necessary?
  • From: jgo <email@hidden>
  • Date: Wed, 5 Dec 2001 19:54:59 -0800

>> On Wednesday, 2001 December 5 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.

I've never been comfortable doing this, leaving the system or
quantum mechanics or spirits from another plane to determine when,
if ever, it gets around to actually applying the updates. Sure,
if I'm updating a series of things, it makes sense to have the
re-drawing done after the series. But most of the time, I want
to make the change and immediately have it done.

My question would be when the frameworks/system might get
bent out of shape when I issue the display message.

John G. Otto, Eagle Scout, Knight, Cybernetic Praxeologist
Existence, Consciousness, Identity, Life, Liberty, Property, Privacy, Justice


  • Follow-Ups:
    • Re: is [uiObject display] necessary?
      • From: Marcel Weiher <email@hidden>
References: 
 >is [uiObject display] necessary ? (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: Trouble getting drag and drop to work
  • Next by Date: Re: Newbie questions: init, new, standard dialogs
  • Previous by thread: Re(2): is [uiObject display] necessary ?
  • Next by thread: Re: is [uiObject display] necessary?
  • Index(es):
    • Date
    • Thread