Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=alastairs-place.net; h=cc: message-id:from:to:in-reply-to:content-type: content-transfer-encoding:mime-version:subject:date:references; q= dns/txt; s=aug07; bh=D5fGMxPx0xm1+ogpjvAh0DMFhDw=; b=TLZBOZUKeSr o6llfNuIHi+DmnUyFrX9TEkP0JSFZOlckLuLSHbDoUmTafrI4JrpMIY7YQCOzSWp aj7i6MNXQETAgARNAJi2FHJpDFF/KNJXbo7EBqK4RsZ1VsiJTYKiE5MA5t90uUI0 gcCdiqpP2refVwA+cOfiCIOTburZU6jU= On 1 Oct 2008, at 00:43, Michael Robinson wrote: The code that outputs the divs is: Kind regards, Alastair. -- http://alastairs-place.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... On 1/10/2008, at 3:23 AM, Alastair Houghton wrote: If you're rendering this in advance using Cocoa, why not use the - appendBezierPathWithArcFromPoint:toPoint:radius: method on NSBezierPath to construct a rounded path? int i; NSMutableString *cornerElements = [NSMutableString new]; for(i = cornerSize; i > 0; i--){ [cornerElements appendString:[NSString stringWithFormat:@"<div style=\"font-size:0em;margin-left:%ipx;margin-right:%ipx;height: 1px;overflow:hidden;background-color:%@;\"> </div>",[self getCornerStripWidth:i:[borderDDTL selectedTag]:sizeTL:cornerSize], [self getCornerStripWidth:i:[borderDDTR selectedTag]:sizeTR:cornerSize],[self hexColor:[portalBGColour color]]]]; } Ah, OK, I see what you're doing. I had assumed that you were doing the corners as bitmaps, but you're using the div method instead. The alternative would be to actually render the corners into a bitmap using Cocoa, then output (for instance) a div with its background set to the corner image. This email sent to site_archiver@lists.apple.com
participants (1)
-
Alastair Houghton