On Sep 4, 2010, at 10:13, Daniel - Area wrote: > My code is basically this: > http://pastie.org/1138167 > > a) Looking my code I think the issue is exactly what you said. But > what is the right object and properties to access the full size of the > view?
No, what I said is not the problem. You're not using the 'rect' parameter at all. Consulting the 'colorWithPatternImage:' documentation: > Parameters > image > The image to use as the pattern for the color object. The image is tiled > starting at the bottom of the window. The image is not scaled. The pattern is tiled relative to the window, not to the view. So, the 'colorWithPatternImage:' isn't a viable approach in this case. You're going to have to browse the documentation to find a different approach (or search for sample code you can adapt). One possibility might be NSGradient, another might be NSDrawThreePartImage. These are both discussed here: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Introduction/Introduction.html Or, you might be able to drop down to core graphics, and use something like CGContextDrawTiledImage. _______________________________________________ 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