• 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: NSView & border
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView & border


  • Subject: Re: NSView & border
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 11 Nov 2004 15:24:37 +0100

At 6:19 Uhr -0600 11.11.2004, Ricky Sharp wrote:
If you must manually draw things, you'd need to make sure your NSTextView subviews are inset properly so as to not overlap the border's area. But how you'd mimic the drawing that NSBox/NSScrollView does, I do not know.

NSGraphics.h is *almost* an option. Sadly, it mostly draws the old NeXT-style borders, bezels and grooves. I've written my own UKGraphics that draws borders that look more like Apple's.


If you can require 10.3, you could also try using the Carbon HITheme APIs. They take a CGContextRef, but you can get that from [[NSGraphicsContext currentContext] graphicsPort], and then you could use HIThemeDrawFrame().
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >NSView & border (From: Don Willems <email@hidden>)
 >Re: NSView & border (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Enabling click-through
  • Next by Date: Re: OT: Bug in IB
  • Previous by thread: Re: NSView & border
  • Next by thread: Symbol font still not directly accessible?
  • Index(es):
    • Date
    • Thread