 |
 |
How the menubar works?
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status:
Offline
|
|
Alright my question is a high level one here... How does every window regardless of application type know where the menubar is... Basically how would the system broadcast that? Any takers? Any ideas?
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status:
Offline
|
|
 Isn't the menu bar always at the top of the screen?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Aug 2001
Status:
Offline
|
|
Originally posted by itai195:
Isn't the menu bar always at the top of the screen?
Yes, but programs generally don't have much of a conception of "top of the screen". There's something it does that makes it accessible to all programs (or else each has their own menubar, which I think is the case, based on watching what happens with themeing programs)
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status:
Offline
|
|
Originally posted by Catfish_Man:
Yes, but programs generally don't have much of a conception of "top of the screen". There's something it does that makes it accessible to all programs (or else each has their own menubar, which I think is the case, based on watching what happens with themeing programs)
They have an instance of NSMenu attached to their NSApplication's mainMenu outlet, if that's what you're getting at. They don't know where the menu bar is, they just respond to menu events.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status:
Offline
|
|
basically I am wanting to know how the system handles the menubar because if you could reproduce it, you could write applications that all other windows are aware off, and will not zoom or be opened behind it, with out having to use the CGSSetDockRect..
So I am just trying to get an understanding how the system creates that space that apps and windows do go beyond
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
It's an implementation detail you shouldn't concern yourself with. What you're trying to do is bad. Very, very bad.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2004
Location: Indianapolis, Indiana
Status:
Offline
|
|
yea, but that never stopped me before "in any aspect of life" 
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|