Re: Programming NSImageView
Re: Programming NSImageView
- Subject: Re: Programming NSImageView
- From: email@hidden
- Date: Fri, 22 Feb 2002 12:59:31 -0800
But now, I want to create my NSImageView without Interface Builder. I
mean
programmed the creation and display of an NSImageView in my Window. I
don't
know if it's possible because I don't find documentation about it. May
be
someone can help me.
You would typically make your view by doing:
myView = [[NSImageView alloc] initWithFrame:frame];
and then add it in by doing:
[mySuperview addSubview:myView];
and probably also:
[myView release];
since the view is now retained by its superview. See the doc on NSView
for more on these methods.
Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.