Cocoa functionality analogous to ValidWindowRect?
Cocoa functionality analogous to ValidWindowRect?
- Subject: Cocoa functionality analogous to ValidWindowRect?
- From: Kurt Bigler <email@hidden>
- Date: Thu, 03 Nov 2005 13:58:20 -0800
I have not been able to find any functionality in NSView that corresponds to
the carbon ValidWindowRect call, which marks a rectangular area as not
needing to be redrawn.
I am porting an application that was written with some portability hooks
which require this functionality. I'd rather be able to do the initial port
without having to redesign these internals to avoid needing this
functionality, if at all possible
I see these two NSView methods:
- (void)setNeedsDisplay:(BOOL)flag
- (void)setNeedsDisplayInRect:(NSRect)invalidRect
but in those terms what I need is a method that takes both an NSRect and a
BOOL.
It appears that the app needs this functionality in order to avoid infinite
refresh loops when interdependent objects (not views) might refresh each
other in an infinitely recursive way due to potentially circular
dependencies. A deeper port might turn each of these objects into its own
NSVIew, but I think that is way too much work for the initial port.
Thanks for any suggestions.
-Kurt Bigler
_______________________________________________
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