Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 08:55, DKJ wrote: Maybe I should just make my help info into a PDF file, and display that on a CATextLayer. Oops, it's the contents property of a CALayer I was thinking of here. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 08:31, I. Savant wrote: I'd turn off all layers and make sure it's working normally without them. Alas, after having the Help button method hide theView's CALayer, there's still no sign of my NSTextView subclass. Maybe I should just make my help info into a PDF file, a

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 11:27 AM, DKJ <[EMAIL PROTECTED]> wrote: > I should have made clear in my first post that the animation layers of > theView are CALayer objects. Maybe I'll try hiding those. Yes, that changes things a bit. :-) I'm not convinced, though, that you have the view geometry &

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 08:14, I. Savant wrote: Do away with the animation logic for now. See if it behaves as expected by setting the frames directly (without calls to the view's -animator). The subview appears for an instant, with its origin is in the centre of the superview, filling the upper-

Re: Subview display problem

2008-10-28 Thread Patrick Mau
Hi DKJ, On 28.10.2008, at 14:23, DKJ wrote: I'm having no luck getting a subview to display. In the awakeFromNib of the controller I have this: helpView = [[MyView alloc] init]; [helpView setFrameOrigin:RectCentre( [theView frame] )]; [helpView setFrameSize:NSZeroSize

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 11:01 AM, DKJ <[EMAIL PROTECTED]> wrote: > This produces a strange result. The width of the subview's frame increases > by stages to that of the superview, but its height stays constant at 14.0. > All with nothing happening on the screen. Maybe I'm missing something othe

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 07:49, I. Savant wrote: logging the view's frame each time it's drawn This produces a strange result. The width of the subview's frame increases by stages to that of the superview, but its height stays constant at 14.0. All with nothing happening on the screen. __

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 10:42 AM, DKJ <[EMAIL PROTECTED]> wrote: > Good point. I changed the line to this: > >helpView = [[MyView alloc] initWithFrame:[theView frame]]; > > But the result was the same: a brief flash of colour. I also tried passing > NSZeroRect instead of [theView frame], a

Re: Subview display problem

2008-10-28 Thread DKJ
On 28 Oct, 2008, at 06:54, I. Savant wrote: On Tue, Oct 28, 2008 at 9:23 AM, DKJ <[EMAIL PROTECTED]> wrote: I'm having no luck getting a subview to display. In the awakeFromNib of the controller I have this: helpView = [[MyView alloc] init]; NSView's designated initializer is -init

Re: Subview display problem

2008-10-28 Thread I. Savant
On Tue, Oct 28, 2008 at 9:23 AM, DKJ <[EMAIL PROTECTED]> wrote: > I'm having no luck getting a subview to display. In the awakeFromNib of the > controller I have this: > >helpView = [[MyView alloc] init]; NSView's designated initializer is -initWithFrame: ... what happens if you use tha

Subview display problem

2008-10-28 Thread DKJ
I'm having no luck getting a subview to display. In the awakeFromNib of the controller I have this: helpView = [[MyView alloc] init]; [helpView setFrameOrigin:RectCentre( [theView frame] )]; [helpView setFrameSize:NSZeroSize]; [theView addSubview:helpView]; (Rec