• 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: How can we draw a NSWindow in a custom NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can we draw a NSWindow in a custom NSView?


  • Subject: Re: How can we draw a NSWindow in a custom NSView?
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 2 Oct 2007 01:27:22 +0200


On lundi, octobre 1, 2007, at 10:02 PM, Eric Schlegel wrote:


On Oct 1, 2007, at 12:58 PM, Stéphane Sudre wrote:

My issue with HIThemes APIs is that they are probably not resolution independent compatible.

Actually, they are.

I'm not sure I can say they are. My point being that if the drawing is already incorrect at resolution = 1.0f, I don't think it can be said that they correctly deal with higher resolution.


I've just spent some times testing the HITheme API to draw a window frame and while I'm getting close to a not too bad result, I've found the method to draw Window frame to be buggy:

(1) it doesn't draw the window frame, it draws the inner part of a window frame.

(2) it doesn't draw the window growbox the Cocoa way

(3) it doesn't draw the Window buttons correctly (they are vertically offseted by at least 2 pixels).

While it's possible to work around (2) pretty easily, (1) and (3) are more problematic.

(1) could be solved by computing the frame line but there are no guarantees the frame would be the same on different OS versions.

(3) might be solved by using the NSWindow API to get access to real NSWindow buttons. But again, it's not a nice move toward compatibility.



_______________________________________________

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: How can we draw a NSWindow in a custom NSView?
      • From: Ricky Sharp <email@hidden>
References: 
 >Re: How can we draw a NSWindow in a custom NSView? (From: Eric Schlegel <email@hidden>)

  • Prev by Date: Converting NSArray of NSString elements into binary?
  • Next by Date: Fw: Problems with authorization (error -60002, errAuthorizationInvalidRef)
  • Previous by thread: Re: How can we draw a NSWindow in a custom NSView?
  • Next by thread: Re: How can we draw a NSWindow in a custom NSView?
  • Index(es):
    • Date
    • Thread