Re: Problems with NSApp runModalForWindow

2011-10-17 Thread Vojtěch Meluzín
Hi folks, thanks for your answers and sorry for the delay. Anyway here's the stack trace: #00x7fff862cff10 in objc_msgSend #10x7fff80341206 in _CFAutoreleasePoolPop #20x7fff8a401200 in -[NSAutoreleasePool drain] #30x7fff8687fe35 in -[NSApplication _realDoModalLoop:peek:] #40x7

Re: Problems with NSApp runModalForWindow

2011-09-26 Thread Vijay Malhan
2011/9/25 Vojtěch Meluzín > Hi, > > I'm creating a GUI system for AU/VST plugins. The host creates the view and > the rest is based of modal windows, so I'm using NSApp runModalForWindow > for > that. But there are a few problems: > > 1) NSApp runModalForWindow does not activate the window. Right

Re: Problems with NSApp runModalForWindow

2011-09-26 Thread koko
I cannot agree with not nesting modal sessions in modal session as I do it with no ill effects. -koko On Sep 26, 2011, at 12:48 PM, Jerry Krinock wrote: > > On 2011 Sep 25, at 11:10, Vojtěch Meluzín wrote: > >> 3) When I use runModalForWindow inside another modal loop, it often crashes >> wit

Re: Problems with NSApp runModalForWindow

2011-09-26 Thread Jerry Krinock
On 2011 Sep 25, at 11:10, Vojtěch Meluzín wrote: > 3) When I use runModalForWindow inside another modal loop, it often crashes > with some weird exception from the release pool. I remember one time I accidentally got a modal session inside of another modal session and saw crashes. The solution

Problems with NSApp runModalForWindow

2011-09-26 Thread Vojtěch Meluzín
Hi, I'm creating a GUI system for AU/VST plugins. The host creates the view and the rest is based of modal windows, so I'm using NSApp runModalForWindow for that. But there are a few problems: 1) NSApp runModalForWindow does not activate the window. Right now I'm testing it as an application not