• 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: John Stiles <email@hidden>
  • Date: Sun, 30 Sep 2007 17:17:54 -0700

Hate to ask, but why? MDI on Mac OS is not a good idea ;)
Anyway, the HITheme APIs are probably your best bet. (Carbon)


On Sep 30, 2007, at 4:32 PM, Stéphane Sudre wrote:

I'm investigating possible solutions to draw a window frame (title bar, buttons, title, resize box, background) in a NSView that's inside a real window.

Something like this:

+---------------------------------------------+
| O O O          A real window                |
+---------------------------------------------+
|                                             |
|  +------------------------------------+     |
|  | O O O    A fake window             |     |
|  +------------------------------------+     |
|  |                                    |     |
|  |                                    |     |
.  .                                    .     .

And in my dream, I would like to have shadow too (but with NSShadow this might be easy)).

I had a look at the AppKit headers to see if I could find some functions that would draw a window frame but I was not able to find one. IIRC, there used to be such functions in Carbon.

One solution could be to use an Overlay window but I would rather not have to go this way to avoid sharing outlet connections between 2 windows and having to handle resizing in an awkward way.

Another solution could be to render the window frame using multiple pictures but that would not be a good solution from a resolution independence point of view. Not to mention that depending on the OS version, I would have to use different sets of pictures.

Any better idea or suggestion?


_______________________________________________

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:
40blizzard.com


This email sent to email@hidden

_______________________________________________

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


References: 
 >How can we draw a NSWindow in a custom NSView? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: 'kASAppleScriptSuite' undeclared
  • Next by Date: Re: Programatically bind NSArrayController to NSManagedObjectContext?
  • Previous by thread: How can we draw a NSWindow in a custom NSView?
  • Next by thread: id type used as token and Distributed Objects
  • Index(es):
    • Date
    • Thread