Re: help with program please?
Re: help with program please?
- Subject: Re: help with program please?
- From: Ondra Cada <email@hidden>
- Date: Thu, 7 Apr 2005 19:40:06 +0200
Brian,
On 7.4.2005, at 19:34, Brian O'Brien wrote:
I have a class called MyNSImageView which is derived from NSImageView.
I want my application to pop up and array of these depending on
application parameters....
Are you quite sure you do? Pretty often it's better to use something
like NSMatrix, i.e., one view, which combines a number of lightweight
cells.
Right now I've made 3 of them on my application in the interface
builder, but I may need more and
I obviously don't know how to do this dynamically.
Whilst you can make and initialize a view programmatically, generally
the best way is to put it into a NIB apart, and then load the NIB as
many times as you need: each load gives you one view.
(Note again that this approach works great for a few, or at worst a few
tens of, objects. If you need hundreds or thousands or more, the
multiple-view approach is not good anyway.)
Oh by the way.. Once you have set the superclass of your controller
class and done all the connections
how do you go about changing the superclass type?
I am not quite sure I follow you, but to change a superclass of just
anything you need only to edit its interface file. To ensure Interface
Builder knows of the change you just import the interface into it
(drag&dropping it over its window, for example).
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden