• 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
Cocoa functionality analogous to ValidWindowRect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa functionality analogous to ValidWindowRect?
      • From: Chris Hanson <email@hidden>
    • Re: Cocoa functionality analogous to ValidWindowRect?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: NSObjectController prepareContent
  • Next by Date: drop location feedback in NSTextView
  • Previous by thread: Re: NSObjectController prepareContent
  • Next by thread: Re: Cocoa functionality analogous to ValidWindowRect?
  • Index(es):
    • Date
    • Thread