• 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: drawing into a hidden view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing into a hidden view


  • Subject: Re: drawing into a hidden view
  • From: Shane <email@hidden>
  • Date: Sat, 15 May 2010 20:51:11 -0500

> You need to dissociate drawing from data collection. Your view's
> implementation of -drawRect: should simply draw whatever the current
> state is. It might be something as simple as this:
>
> - (void)drawRect:(NSRect)dirtyRect {
>  for (DataPoint *p in [modelObject dataPoints])
>    [self drawDataPoint:p];
> }

But I have. My drawRect: is simply as follows.

- (void) drawRect:(NSRect) rect
{
	NSRect bounds = [self bounds];

	[[NSColor blackColor] setFill];
	[NSBezierPath fillRect:bounds];

	[self drawAxes];
	[self drawError];

	return;
}
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: drawing into a hidden view
      • From: Kyle Sluder <email@hidden>
References: 
 >drawing into a hidden view (From: Shane <email@hidden>)
 >Re: drawing into a hidden view (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: SETUP : Regular Expressions - Easy Setup for RegexKitLite
  • Next by Date: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:
  • Previous by thread: Re: drawing into a hidden view
  • Next by thread: Re: drawing into a hidden view
  • Index(es):
    • Date
    • Thread