• 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
White block at Core Animation Rendering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

White block at Core Animation Rendering


  • Subject: White block at Core Animation Rendering
  • From: Thomas Bartelmess <email@hidden>
  • Date: Mon, 14 Jan 2008 18:35:43 +0100

Hello i,ve got an object, like that:

@implementation topBar

- (id)initWithFrame:(NSRect)frame {
    self = [super initWithFrame:frame];
    if (self) {

    }
    return self;
}

- (void)drawRect:(NSRect)rect {


NSGradient* topBarGradient = [[[NSGradient alloc] initWithStartingColor:[NSColor colorWithDeviceRed:0.7 green:0.7 blue: 0.7 alpha:1.0] endingColor:[NSColor colorWithDeviceRed:0.9 green:0.9 blue:0.9 alpha:1.0]] autorelease];


	NSRect rect1 = NSMakeRect ( 0,0,[self bounds].size.width,30 );
	[topBarGradient drawInRect:rect1 angle:90];

}

when turn on Core Animation Rendering (setWantsLayer:true) there is no gardient, just a white box
_______________________________________________


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: White block at Core Animation Rendering
      • From: Troy Stephens <email@hidden>
  • Prev by Date: CATransition and animationDidStop:finished: delegate method.
  • Next by Date: Scripting Bridge: the Excel case
  • Previous by thread: CATransition and animationDidStop:finished: delegate method.
  • Next by thread: Re: White block at Core Animation Rendering
  • Index(es):
    • Date
    • Thread