discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about NSMenuView


From: Nicolas Roard
Subject: Re: Question about NSMenuView
Date: Thu, 15 Jan 2009 18:32:22 +0000

On Thu, Jan 15, 2009 at 6:26 PM, Matt Rice <ratmice@gmail.com> wrote:
> 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,

duh! you are right, this was from michael.

> 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
>

-- 
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams




reply via email to

[Prev in Thread] Current Thread [Next in Thread]