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

Re: Cocoa functionality analogous to ValidWindowRect?


  • Subject: Re: Cocoa functionality analogous to ValidWindowRect?
  • From: Kurt Bigler <email@hidden>
  • Date: Mon, 07 Nov 2005 00:00:17 -0800

on 11/5/05 6:35 AM, John C. Randolph <email@hidden> wrote:

> On Nov 3, 2005, at 1:58 PM, Kurt Bigler wrote:
>
>> 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.
>
> There's nothing like this in Cocoa.  A view's content is considered
> valid unless you send it a -setNeedsDisplay: or -
> setNeedsDisplayInRect: message.

I wonder whether this was just considered unnecessary functionality, or
whether it was omitted due to an actual design restriction.  FWIW, I filed
an enhancement request for this:

    rdar://4331722


on 11/5/05 8:41 AM, Chris Hanson <email@hidden> wrote:
> You won't be able to do this with AppKit directly.  However, if
> there's a way to determine when your application objects are "done"
> invalidating and re-validating, you can implement your own system to
> track which rectangles should be updated.  Then when the validations
> are complete, you can invoke -[NSView setNeedsDisplayInRect:] on your
> window's content view with an appropriate set of rectangles.


Thanks to both of you for the information and thoughts.  There is also a
partly-implemented object-level invalidation system that doesn't use
rectangles at all, and finishing this may permit me to do something like
what Chris was suggesting.


-Kurt

 _______________________________________________
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: "John C. Randolph" <email@hidden>
References: 
 >Re: Cocoa functionality analogous to ValidWindowRect? (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: COCOA Frameworks for Relational Databases?
  • Next by Date: Re: Any NSView (subclasss drawing) Layout Persistence Frameworks around?
  • Previous by thread: Re: Subclassing NSButton
  • Next by thread: Re: Cocoa functionality analogous to ValidWindowRect?
  • Index(es):
    • Date
    • Thread