Ok I know I must be missing something dumb. i'm trying to draw borders for the window,
- (void) awakeFromNib{ [window setStyleMask:NSBorderlessWindowMask]; [window setOpaque:YES]; NSDrawNinePartImage([[window contentView]frame], nil, nil, nil, [NSImage imageNamed:@"right3.png"], nil, [NSImage imageNamed:@"left3.png"], [NSImage imageNamed:@"right4.png"], [NSImage imageNamed:@"left5.png"], [NSImage imageNamed:@"left4.png"], NSCompositeClear, 1.0, NO); but i get an error on runtime. <Error>: CGContextGetStyle: invalid context 0x0 It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil. This is a programming error. Break on _NSWarnForDrawingImageWithNoCurrentContext to debug. This will be logged only once. This may break in the future. CGContextClipToRect: invalid context 0x0 <Error>: CGContextSetAlpha: invalid context 0x0 <Error>: CGContextGetUserSpaceToDeviceSpaceTransform: invalid context 0x0 <Error>: CGContextDrawTiledImage: invalid context 0x0 <Error>: CGContextClipToRect: invalid context 0x0 <Error>: CGContextSetAlpha: invalid context 0x0 <Error>: CGContextGetUserSpaceToDeviceSpaceTransform: invalid context 0x0 <Error>: CGContextDrawTiledImage: invalid context 0x0 I looked in the docsa little but did not find any indication that i had to provide a Graphics context. any pointers ? Sandro. _______________________________________________ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com