gnustep-dev
[Top][All Lists]
Advanced

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

Re: NSSavePanel fragile ABI - do we care?


From: Fred Kiefer
Subject: Re: NSSavePanel fragile ABI - do we care?
Date: Mon, 12 Aug 2013 18:36:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7

On 12.08.2013 10:20, Luboš Doležel wrote:
> On Sun, 11 Aug 2013 21:35:08 +0200, Fred Kiefer wrote:
>>> RELEASE()ing it here would close the window immediately, and not keeping
>>> the reference somewhere would leak it.
>>>
>>> If I'm missing something and it can be done differently, please let
>>> me know.
>>
>> Thank you for sending the patch. But even with that I still don't see
>> the point of using an NSWindowsController here. Did you look at the code
>> for showWindow:? It is more or less just a simple call to orderFront:,
>> which could be used here directly. A panel that retains its own windows
>> controller looks wrong to me. Maybe the actual NSSavePanel should be
>> created by an NSWindowsController, but in that case, the controller
>> would retain the window, not the other way around.
> 
> Aah, great, it works, but makeKeyAndOrderFront: does what the user would
> more likely expect - an focused popup window. Can I use that?

Sure, NSWindowsController use either of them, which ever is appropriate.

>> And what do you think of my other suggestion, which of course will
>> require changes to the sheet code in NSApplication?
> 
> First, I'll look around a bit more :-)
> 
> BTW, GNUstep's build system is driving me crazy. I do ./configure
> --prefix=/usr (as ./configure --help advises) and it still installs into
> /usr/local.

You should select the prefix when configuring GNUstep make. From there
it should work.





reply via email to

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