[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about NSMenuView
From: |
Matt Rice |
Subject: |
Re: Question about NSMenuView |
Date: |
Thu, 15 Jan 2009 10:26:59 -0800 |
On Thu, Jan 15, 2009 at 6:03 AM, Nicolas Roard <nicolas.roard@gmail.com> wrote:
> On Thu, Jan 15, 2009 at 1:42 PM, David Chisnall <theraven@sucs.org> wrote:
>> On 14 Jan 2009, at 21:08, Fred Kiefer wrote:
>>
>>> Getting a menu inside of a window is not that easy. You will have to
>>> hack through NSMenu a bit. If you know what you are doing this is fine,
>>> but don't expect to get every step explained by this mailing list. We
>>> don't even know, whether you plan to give the resulting code back to
>>> GNUstep.
>>
>> I'm sure I remember Nicolas showing me a bundle which attached menus to
>> windows as toolbars a few years back, at around the same time I first saw
>> WildMenus. Did I imagine it? If I didn't, does it still exist?
>
> This was a quick hack from Matt Rice iirc, and likely wouldn't work
> now (I'm not even sure matt sent me the source code). But the basic
> concept was to leverage the toolbar system to attach menus.
>
nah that wouldn't have been me, I think I saw a screenshot from
Michael Hanni though,
I would probably have tried subclassing GSWindowDecorationView (like
in the NiftyTitleBar bundle) and added a
NSTableView without the scroll bars/headers containing strangely
configured NSPopUpButtonCell's e.g
pullsDown/usesItemFromMenu/preferredEdge, though I don't recall the
specifics of if its easy to change a GSWindowDecorationView's size and
whatnot
there is an attachment here which has a bunch of weirdly configured
NSPopUpButtons,
http://www.nabble.com/NSPopUpButton-icon-buttons-patch...-td477205.html
Pretty sure that NSMenuView would still require some patching to get
what you want though from NSPopUpButtonCell
not the whole patch was integrated portions were rejected
anyhow thats one way to go about it maybe
- Question about NSMenuView, Germán André Arias Santiago, 2009/01/11
- Re: Question about NSMenuView, Wolfgang Lux, 2009/01/12
- Re: Question about NSMenuView, Germán André Arias Santiago, 2009/01/14
- Re: Question about NSMenuView, Fred Kiefer, 2009/01/14
- Re: Question about NSMenuView, David Chisnall, 2009/01/15
- Re: Question about NSMenuView, Nicolas Roard, 2009/01/15
- Re: Question about NSMenuView,
Matt Rice <=
- Re: Question about NSMenuView, Nicolas Roard, 2009/01/15
- Re: Question about NSMenuView, Fred Kiefer, 2009/01/16
- Re: Question about NSMenuView, Matt Rice, 2009/01/16
- Re: Question about NSMenuView, Matt Rice, 2009/01/16
- NSMenuView patch (was: Re: Question about NSMenuView), Wolfgang Lux, 2009/01/16
- Re: NSMenuView patch (was: Re: Question about NSMenuView), Wolfgang Lux, 2009/01/16
- Re: NSMenuView patch (was: Re: Question about NSMenuView), Matt Rice, 2009/01/16
- Re: Question about NSMenuView, Richard Frith-Macdonald, 2009/01/16
- Re: Question about NSMenuView, Matt Rice, 2009/01/16