Re: is [uiObject display] necessary ?
Re: is [uiObject display] necessary ?
- Subject: Re: is [uiObject display] necessary ?
- From: John Hörnkvist <email@hidden>
- Date: Wed, 5 Dec 2001 11:17:57 +0100
On Wednesday, December 5, 2001, at 11:04 , Jens Bauer wrote:
Hi all,
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.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com