Re: NSDrawer

2018-10-03 Thread Georg Seifert
But you can simulate a drawer by adding the extra view and resizing the window to fit. This is done automatically when you use autolayout (a stack view would be more useful than a split view) or a few lines of code when you do it manually. georg > On 3. Oct 2018, at 04:00, Casey McDermott wr

Re: NSDrawer

2018-10-02 Thread Casey McDermott
>> One potential problem I see with drawers is - if the window was in full >> screen mode, nothing appears to happen unless they know to get out of full >> screen (which isn’t a good experience). In our case, the data entry screens have a fixed-size layout, so the window is also a fixed size. N

Re: NSDrawer

2018-10-01 Thread Phil Marell
cocoa-dev-requ...@lists.apple.com > > You can reach the person managing the list at > cocoa-dev-ow...@lists.apple.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cocoa-dev digest..." > Today's

Re: NSDrawer

2018-07-18 Thread Casey McDermott
>>  FWIW, the deprecation warning for NSDrawer says to "consider using  >>NSSplitViewController." I can see how NSSplitViewController might be a good replacement in some cases, but not here. Thanks for all the suggestions, Casey McDermott www.TurtleSoft.com

Re: NSDrawer

2018-07-18 Thread Joel Norvell
Hi Cocoa-dev people, FWIW, the deprecation warning for NSDrawer says to "consider using NSSplitViewController." Best regards, Joel Norvell On Mon, Jul 2, 2018, at 7:08 PM, Casey McDermott wrote: > NSDrawer is deprecated, but it's also perfect for our application. > We still haven't found a good

Re: NSDrawer

2018-07-14 Thread Greg Weston
Casey McDermott wrote: > NSPanel is still modal, but longer lasting. We use it a lot, and it > looks better than the modal dialogs in the current app. I read in digest mode so maybe this has already been pointed out, but NSPanel is not modal. ___ Coc

Re: NSDrawer

2018-07-14 Thread Casey McDermott
, and better suited for a single window with outline & tabs. Thanks, Casey McDermott http://www.turtlesoft.com On Fri, 7/13/18, Uli Kusterer wrote: Subject: Re: NSDrawer To: "Casey McDermott" Cc: cocoa-dev@lists.apple.com Date: Fri

Re: NSDrawer

2018-07-13 Thread Uli Kusterer
Just for completeness' sake: You're aware of NSPopover? > On 3. Jul 2018, at 04:08, Casey McDermott wrote: > > NSDrawer is deprecated, but it's also perfect for our application. > We still haven't found a good substitute. > > Our app has an outline view that loads various types of business reco

Re: NSDrawer

2018-07-03 Thread Casey McDermott
Thanks for all the useful suggestions. We need to use a child window in the Windows app, since MFC does not have anything like drawers. If necessary we can use the same approach on Mac. But, maybe we'll get lucky and NSDrawer won't die. It only takes a few lines of code, and it is just righ

Re: NSDrawer

2018-07-02 Thread Alastair Houghton
On 3 Jul 2018, at 03:08, Casey McDermott wrote: > > NSDrawer is deprecated, but it's also perfect for our application. > We still haven't found a good substitute. [snip] > Is there a work-around for an attached window that pops out on the side, > and acts like a drawer? NSDrawer isn’t partic

Re: NSDrawer

2018-07-02 Thread Shazron
I think the best I've seen design wise is with the Safari browser itself. Show/hide the sidebar (Shift-Cmd-L or View -> Show Sidebar) to see how it could work (your main view will have to do some smart resizing). On Tue, Jul 3, 2018 at 10:08 AM Casey McDermott wrote: > NSDrawer is deprecated, bu

Re: NSDrawer not always sending -drawerDidOpen: to delegate

2013-03-06 Thread Jerry Krinock
For archive searchers, this non-reproducible problem that we worked on 3 weeks ago wasn't fixed. It happened to me again yesterday. Also, another, probably related problem occurred, which is that a bunch of checkboxes in the drawer, created and bound programatically, seemed to lose their bind

Re: NSDrawer not always sending -drawerDidOpen: to delegate

2013-02-17 Thread Jerry Krinock
OK, so while the drawer was in the broken state again, with the delegate wired in the nib, I poked it with the debugger again and found that, in order to fix it, I must first set the drawer's delegate to nil before setting it back to the window controller. That is, this did not work: (lldb) ex

Re: NSDrawer not always sending -drawerDidOpen: to delegate

2013-02-16 Thread Kyle Sluder
On Feb 16, 2013, at 6:50 PM, Jerry Krinock wrote: > > On 2013 Feb 16, at 18:24, Kyle Sluder wrote: > >> ;Any reason you didn't do this in the nib itself? > > Probably because I generally find it more enjoyable to write code rather than > click and poke my way through Interface Builder. Well

Re: NSDrawer not always sending -drawerDidOpen: to delegate

2013-02-16 Thread Jerry Krinock
On 2013 Feb 16, at 18:24, Kyle Sluder wrote: > ;Any reason you didn't do this in the nib itself? Probably because I generally find it more enjoyable to write code rather than click and poke my way through Interface Builder. > I'm wondering if you're hitting that caveat from the resource Progr

Re: NSDrawer not always sending -drawerDidOpen: to delegate

2013-02-16 Thread Kyle Sluder
On Feb 16, 2013, at 5:31 PM, Jerry Krinock wrote: > In an app running in Mac OS X 10.8, I have set a drawer's delegate to be its > window controller, in the window controller's -awakeFromNib… > > - (void)awakeFromNib { >… >[drawer setDelegate:self] ; >… > } Any reason you didn't do

Re: NSDrawer dealloc causes kCGErrorIllegalArgument

2011-02-07 Thread Greg Parker
On Feb 7, 2011, at 12:10 PM, James Walker wrote: > I have a dialog with a drawer, and when the dialog closes, my console log > contains these error messages: > > : kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 583 > : kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x247 > > I set

Re: NSDrawer detached from window?

2008-10-09 Thread Andrew Merenbach
On Oct 9, 2008, at 8:20 AM, Mark Roseman wrote: I'm wondering if anyone has seen this behavior before. I have a NSDrawer, which in IB has its parent window set to my document's main window, and the content view set appropriately. I can open and close the drawer fine, and also resize its w

Re: NSDrawer resizing problem - no longer resizes when parent window resized

2008-04-16 Thread Karl Moskowski
I found this message in the archives from a few months ago. In case anyone else runs into it, I discovered that it happens only when garbage collection is enabled. I filed Radar 5867411. I've an odd problem with a drawer in my application. I'm seeing the behavior on Leopard, but it could ha