Re: Swift generics, circular type declarations, and segfaults, oh my!

2015-09-05 Thread Charles Srstka
> On Sep 4, 2015, at 7:59 PM, Quincey Morris > wrote: > > On Sep 4, 2015, at 16:31 , has > wrote: >> >> At risk of derail... > > Do you mean “derail” or “detail”? I feel like I’m drowning in

Re: NSView's in Separate NIB

2015-09-05 Thread Dave
Hi Lee Ann, > On 4 Sep 2015, at 21:25, Lee Ann Rucker wrote: > > NSViewController doesn’t really work that way. It’s like an > NSWindowController - it manages one view and handles all the nib unloading > top-level objects stuff for you. (Trust me, you do not want to manage

Re: Auto Layout Problems

2015-09-05 Thread Dave
Hi, Ok, when I initially asked for some help or if there were any additional documentation I was pointed to this: http://natashatherobot.com/ios-autolayout-scrollview/ Which applies to iOS *only*. I was then told: Yes, there's a pretty huge difference: UIScrollView doesn't have a

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Pascal J. Bourguignon
On 05/09/15 18:39, Felipe Monteiro de Carvalho wrote: On Sat, Sep 5, 2015 at 3:45 PM, Pascal J. Bourguignon wrote: AFAIK, it's on purpose. Definitely in the case of an application modal dialog. In the case of a window modal dialog, you can switch to another window,

Re: Puzzling memory creep

2015-09-05 Thread Quincey Morris
On Sep 5, 2015, at 13:41 , Richard Kennaway wrote: > > With a timer interval of 0.01, the MacBook Pro shows about 2 new 32-byte > allocations per second, and the iMac shows about 100 per second. I repeated the test, with that smaller interval, and yes I can see a very

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Stephane Sudre
On Sat, Sep 5, 2015 at 2:14 PM, Felipe Monteiro de Carvalho wrote: > Hello, > > I want to have a modal window which has menus, so I setup the menus > for the window and make it modal with NSApp.runModalForWindow and > everything is OK, except that my menu items

Re: Auto Layout Problems

2015-09-05 Thread Roland King
This reminds me of the discussion we had about putting stack views in scrollviews back in January http://lists.apple.com/archives/cocoa-dev/2015/Jan/msg00092.html it certainly took a bit of messing about but it wasn’t that hard

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Pascal J. Bourguignon
On 05/09/15 14:14, Felipe Monteiro de Carvalho wrote: Hello, I want to have a modal window which has menus, so I setup the menus for the window and make it modal with NSApp.runModalForWindow and everything is OK, except that my menu items are all disabled! I tried to forcefully enable them,

Re: Auto Layout Problems

2015-09-05 Thread Dave
Meant to add, I get this warning in the NIB file: StackView Expected: y=0, height=476 Actual: y=224, height=461 I’m not sure if this is the problem? If so not sure how to fix it, it won’t let me alter the size of the StackView Cheers Dave ___

Re: Auto Layout Problems

2015-09-05 Thread Dave
Thank you so much for this Roland, > On 5 Sep 2015, at 14:11, Roland King wrote: > > This reminds me of the discussion we had about putting stack views in > scrollviews back in January > > http://lists.apple.com/archives/cocoa-dev/2015/Jan/msg00092.html > > it certainly took

runModalForWindow is disabling my menus

2015-09-05 Thread Felipe Monteiro de Carvalho
Hello, I want to have a modal window which has menus, so I setup the menus for the window and make it modal with NSApp.runModalForWindow and everything is OK, except that my menu items are all disabled! I tried to forcefully enable them, by implementing validateMenuItem and returning always

Re: Auto Layout Problems

2015-09-05 Thread Dave
Hi, I’ve been experimenting and given that I have this in a NIB file: Window Initially - Width=846, Height=594 BaseView (Matches Window) NSScrollView

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Felipe Monteiro de Carvalho
On Sat, Sep 5, 2015 at 3:45 PM, Pascal J. Bourguignon wrote: > AFAIK, it's on purpose. Definitely in the case of an application modal > dialog. > In the case of a window modal dialog, you can switch to another window, and > then have access to the menubar, but within the