Re: NSDrawNinePartImage not working ?
Re: NSDrawNinePartImage not working ?
- Subject: Re: NSDrawNinePartImage not working ?
- From: "Sean McBride" <email@hidden>
- Date: Mon, 15 Feb 2010 00:43:00 -0500
Sandro Noël (email@hidden) on 2010-02-15 00:36 said:
>- (void) awakeFromNib{
>
>[window setStyleMask:NSBorderlessWindowMask];
>[window setOpaque:YES];
>
>NSDrawNinePartImage([[window contentView]frame],
You should be drawing from drawRect:, not awakeFromNib.
<http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/
CocoaDrawingGuide/Introduction/Introduction.html>
Also, IIRC, you can only make a window borderless at init time.
Are you trying to make a custom window? Google must have examples of that...
Sean
--
"How much harm does a company have to do before we question its right to
exist?" — Paul Hawken
_______________________________________________
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