• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDrawNinePartImage not working ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSDrawNinePartImage not working ?
      • From: Sandro Noël <email@hidden>
References: 
 >NSDrawNinePartImage not working ? (From: Sandro Noël <email@hidden>)

  • Prev by Date: NSDrawNinePartImage not working ?
  • Next by Date: Re: NSDrawNinePartImage not working ?
  • Previous by thread: NSDrawNinePartImage not working ?
  • Next by thread: Re: NSDrawNinePartImage not working ?
  • Index(es):
    • Date
    • Thread