Re: Newbie Interface question
Re: Newbie Interface question
- Subject: Re: Newbie Interface question
- From: Andy Lee <email@hidden>
- Date: Mon, 4 Mar 2002 22:22:03 -0500
Also consider whether you really want to be removing checkboxes as opposed to disabling them. I don't have enough context to offer an opinion in this case. Often it is better to show all possible options to the user, even the options he doesn't have at that particular time. But there are cases where a dynamically assembled UI is appropriate. If this is such a case, then Eric is right, an NSMatrix is the way to go.
--Andy
At 9:02 PM -0600 3/4/02, Erik M. Buck wrote:
>
Use NSMatrix. I assume you are already using a matrix of check boxes and
>
not a bunch of separate check boxes.
>
>
A matrix can have cells added and removes and can be sized to fit its cells.
>
The enclosing scroll view will automatically handle changes to the size of
>
the matrix.
>
>
----- Original Message -----
>
From: "Ian Crew" <email@hidden>
>
To: <email@hidden>
>
Sent: Monday, March 04, 2002 7:29 PM
>
Subject: Newbie Interface question
>
>
>
> Greetings all:
>
>
>
> I'm just getting started on writing my first Cocoa app, and I've
>
> already run into a roadblock:
>
>
>
> I'm trying to construct a scrolling list of checkboxes (I'm building
>
> a product that is in many ways very similar to an installer program),
>
> and I've figured out how to make such a thing in interface builder
>
> (creating a bunch of NSButton Switches, selecting them all, and
>
> choosing "Make Subfiews of->scroll view" from the Layout menu). My
>
> question is this: How do I add or remove checkboxes from this list
>
> programatically? (In other words, the user won't always have the
>
> same number of choices to choose from--how do I implement that?) Or
>
> is there some more obvious/important thing I'm missing?
>
>
>
> Thanks much!
>
>
>
> Ian Crew
_______________________________________________
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.