On 01/11/2009, at 8:17 AM, PCWiz wrote:
I tried drawing a rect around the whole frame like so:
- (void)drawRect:(NSRect)dirtyRect
{
NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self
frame] xRadius:6.0 yRadius:6.0];
[[NSColor whiteColor] set];
[path stroke];
I tried drawing a rect around the whole frame like so:
- (void)drawRect:(NSRect)dirtyRect
{
NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:[self
frame] xRadius:6.0 yRadius:6.0];
[[NSColor whiteColor] set];
[path stroke];
[super drawRect:dirtyRect];
}
..a
On Oct 31, 2009, at 1:10 PM, PCWiz wrote:
- (void)drawRect:(NSRect)dirtyRect
{
[[NSColor whiteColor] set];
NSBezierPath *path = [NSBezierPath
bezierPathWithRoundedRect:dirtyRect xRadius:6.0 yRadius:6.0];
You're rounding the wrong rect here. You want the whole view frame,
not the dir
I'm using AMCollectionView (Code - harmless Cocoa, clone of
NSCollectionView) to display a collection of views. In my prototype
view subclass I have this:
- (void)drawRect:(NSRect)dirtyRect
{
[[NSColor whiteColor] set];
NSBezierPath *path = [NSBezierPath
bezierPathWithRoundedRect:d