Re: NSMatrix Opacity ?
Re: NSMatrix Opacity ?
- Subject: Re: NSMatrix Opacity ?
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 7 Oct 2001 23:17:16 -0700
On Sunday, October 7, 2001, at 10:06 PM, Lizardo H. C. M. Nunes wrote:
Hi,
I'm playing around with the AppKit and now I'm studying different kind
of
matrixes. A piece of my " MyMatrix.m " is as follows,
- (id)initWithFrame:(NSRect)frameRect
{
( ... )
[ self initWithFrame:frameRect
mode:(int) aMode
prototype: (id) aCell
numberOfRows: (int) anInteger
numberOfColumns: (int) anInteger ];
( ... )
return self;
}
I also have
" -( BOOL )isOpaque{ return YES; } "
Unfortunately, I can't resize the Window without loosing Matrix
definition.
What do you mean by "losing definition"? Is the matrix failing to
redraw?
I tried
[ self setNeedsDisplay: YES ];
in " -( id )iniWithFrame: ... " above and it didn't work. I'm pretty
sure
there's a simple solution, but I couldn't figure it out.
- initWithFrame: is only going to get called once.
In your nib file, have you set your matrix to be resizeable?
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.