Re: programmitically creating nstextfield

2010-04-15 Thread mark
On Wed, Apr 14, 2010 at 9:24 PM, mark wrote: window=[[NSWindow alloc] initWithContentRect:r styleMask:0 Use the NSBorderlessWindowMask symbolic constant instead of passing 0. backing:NSBackingStoreRetained defer:NO]; As the documentation says, do not use NSBackingStoreRetained, or

Re: programmitically creating nstextfield

2010-04-14 Thread Kyle Sluder
On Wed, Apr 14, 2010 at 9:24 PM, mark wrote: > window=[[NSWindow alloc] initWithContentRect:r styleMask:0 Use the NSBorderlessWindowMask symbolic constant instead of passing 0. >        backing:NSBackingStoreRetained defer:NO]; As the documentation says, do not use NSBackingStoreRetained, or in

Re: programmitically creating nstextfield

2010-04-14 Thread Jens Alfke
--Jens {via iPad} On Apr 14, 2010, at 9:48 PM, Ron Fleckner wrote: > >> NSRect r={{NSMaxX(w)-96, NSMaxY(w)-ToolbarHeightForWindow(relativeToWindow) >> -titleBarHeight(relativeToWindow)-24}, >> {256, 64}}; > > NSRect r = NSMakeRect(... ); The original syntax is correct too. I

Re: programmitically creating nstextfield

2010-04-14 Thread Ron Fleckner
On 15/04/2010, at 2:24 PM, mark wrote: Would someone please tell me why this text field will not show. It is driving me spastic. The window and text field are valid. And there are no errors. The window shows but the text field does not. relativeToWindow is valid. NSRect w=[relativeToWindow f

programmitically creating nstextfield

2010-04-14 Thread mark
Would someone please tell me why this text field will not show. It is driving me spastic. The window and text field are valid. And there are no errors. The window shows but the text field does not. relativeToWindow is valid. NSRect w=[relativeToWindow frame]; NSRect r={{NSMaxX(w)-96, NSMaxY(w)-